From 2e7e0bf51248369e10739240be645d75ed38ecec Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 12 Oct 2024 12:33:54 +0300 Subject: [PATCH] Fix error by changing signature of GetDefaultConfig() func in tcpclient --- tcpclient/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpclient/client.go b/tcpclient/client.go index 3d8defd..5ccd44a 100644 --- a/tcpclient/client.go +++ b/tcpclient/client.go @@ -12,8 +12,8 @@ type ClientConfiguration struct { ErrorResolver func(chan error) } -func GetDefaultConfig() ClientConfiguration { - return ClientConfiguration{ +func GetDefaultConfig() *ClientConfiguration { + return &ClientConfiguration{ ErrorResolver: func(c chan error) { for err := range c { fmt.Printf("DefConfig:Error: %v\n", err)