Fix error by changing signature of GetDefaultConfig() func in tcpclient

This commit is contained in:
qowevisa 2024-10-12 12:33:54 +03:00
parent 0fecb28b58
commit 2e7e0bf512

View File

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