diff options
| author | demo <demo@antix1> | 2026-05-24 10:38:38 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-24 10:38:38 -0400 |
| commit | 5d62bf1bbd63017a28cbd489a7e12571bac65f85 (patch) | |
| tree | 9e2b88c9fb043616dda4daa657b5b876d2585661 | |
| parent | 997e8799f5207c73a29aabb7d614d49168144866 (diff) | |
chore: add logging to indicate when workers start and stop
| -rw-r--r-- | main.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,7 @@ package main import ( "flag" "fmt" + "log" "time" ) @@ -30,6 +31,8 @@ func game(numSecs int) { } func player(name string, table chan Ball) { + log.Printf("started player %s", name) + for { ball := <-table ball.hits++ @@ -40,4 +43,7 @@ func player(name string, table chan Ball) { table <- ball } + + // FIXME: this is currently unreachable. + log.Printf("finished player %s", name) } |
