Closed forrany closed 5 days ago
如图,在气泡模式下,代码框内容辨认度很低
实际内容如下:
解释下这段代码
// 客户端连接状态监控 conn, err := grpc.Dial(address, grpc.WithStatsHandler(&statsHandler{}), grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy":"round_robin"}`)) // 监控连接状态 go func() { for { state := conn.GetState() log.Printf("Connection state: %s", state) time.Sleep(time.Second) } }()
修掉了,我先关掉了,等版本更新
如图,在气泡模式下,代码框内容辨认度很低
实际内容如下:
解释下这段代码