From 374e3984ce018aad1f6d9311ebcca06ad1953888 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 12 Oct 2024 12:34:24 +0300 Subject: [PATCH] Add type ErrorResolverFunc func(errors chan error) --- tcpclient/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tcpclient/client.go b/tcpclient/client.go index 5ccd44a..ca6d044 100644 --- a/tcpclient/client.go +++ b/tcpclient/client.go @@ -22,6 +22,8 @@ func GetDefaultConfig() *ClientConfiguration { } } +type ErrorResolverFunc func(errors chan error) + type Client struct { addr string exit chan bool @@ -30,7 +32,7 @@ type Client struct { // Messages chan []byte ErrorsChannel chan error - ErrorResolver func(chan error) + ErrorResolver ErrorResolverFunc } func CreateClient(addr string, options ...ClientOption) *Client {