Fix error by changing signature of GetDefaultConfig() func in tcpclient
This commit is contained in:
parent
0fecb28b58
commit
2e7e0bf512
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user