Add sending errors to ErrorsChannel

This commit is contained in:
qowevisa 2024-10-12 12:33:12 +03:00
parent 45f08adff3
commit 0fecb28b58

View File

@ -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()