Add sending errors to ErrorsChannel
This commit is contained in:
parent
45f08adff3
commit
0fecb28b58
|
@ -19,6 +19,7 @@ func main() {
|
||||||
for i := 0; i < 10; i++ {
|
for i := 0; i < 10; i++ {
|
||||||
client.Server.Write([]byte("PING\n"))
|
client.Server.Write([]byte("PING\n"))
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
|
client.ErrorsChannel <- fmt.Errorf("test err")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
err := client.StartClient()
|
err := client.StartClient()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user