Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsmejkal committed Oct 15, 2024
1 parent 2ef8f9b commit cbcf5c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/contract/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ func NewWorker(name string) *plumber.BaseLooper {
time.Sleep(100 * time.Millisecond)
fmt.Printf("[%s] starting up\n", name)
l.Ready()
tick := time.Tick(1000 * time.Millisecond)
tick := time.NewTicker(1000 * time.Millisecond)
defer tick.Stop()
for {
select {
case <-tick:
case <-tick.C:
// Work
fmt.Printf("[%s] work\n", name)
case done := <-l.Closing():
Expand Down

0 comments on commit cbcf5c6

Please sign in to comment.