Use the API right
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-09-08 20:16:53 +02:00
parent c116139f89
commit 8d42585672
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -23,7 +23,7 @@ func newConsumer(conn net.Conn) *Consumer {
fmt.Fprint(conn, "\r\n")
go func() {
ticker := time.Tick(10 * time.Second)
ticker := time.NewTicker(10 * time.Second).C
for {
select {
case <-ticker: