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)
|
ErrorResolver func(chan error)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetDefaultConfig() ClientConfiguration {
|
func GetDefaultConfig() *ClientConfiguration {
|
||||||
return ClientConfiguration{
|
return &ClientConfiguration{
|
||||||
ErrorResolver: func(c chan error) {
|
ErrorResolver: func(c chan error) {
|
||||||
for err := range c {
|
for err := range c {
|
||||||
fmt.Printf("DefConfig:Error: %v\n", err)
|
fmt.Printf("DefConfig:Error: %v\n", err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user