From 3a9ab4902cb4c03276079194c4561815fa5cfb3a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 22 Sep 2015 20:57:03 +0200 Subject: Unify state names --- philo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/philo.go b/philo.go index 19e555a..c849add 100644 --- a/philo.go +++ b/philo.go @@ -54,13 +54,13 @@ func hungry(p *Philo) stateFn { return eat case <-time.After(time.Second): p.LHS <- true // put left fork back - return starving + return starve } return eat } -func starving(p *Philo) stateFn { +func starve(p *Philo) stateFn { p.state("is starving") rndDelay() -- cgit v1.2.3