parent
c116139f89
commit
8d42585672
|
@ -23,7 +23,7 @@ func newConsumer(conn net.Conn) *Consumer {
|
||||||
fmt.Fprint(conn, "\r\n")
|
fmt.Fprint(conn, "\r\n")
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
ticker := time.Tick(10 * time.Second)
|
ticker := time.NewTicker(10 * time.Second).C
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ticker:
|
case <-ticker:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user