Browse Source

connect: use HostInfo string method

Chris Bannister 8 năm trước cách đây
mục cha
commit
f3cb8733fe
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      conn.go

+ 2 - 2
conn.go

@@ -157,9 +157,9 @@ func Connect(host *HostInfo, cfg *ConnConfig, errorHandler ConnErrorHandler, ses
 	if host == nil {
 		panic("host is nil")
 	} else if len(host.ConnectAddress()) == 0 {
-		panic(fmt.Sprintf("host missing connect ip address: %#+v", host))
+		panic(fmt.Sprintf("host missing connect ip address: %v", host))
 	} else if host.Port() == 0 {
-		panic(fmt.Sprintf("host missing port: %#+v", host))
+		panic(fmt.Sprintf("host missing port: %v", host))
 	}
 
 	var (