Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

客户端重试

演示如何使用客户端容错重试

运行

运行failureServer.go 该服务端总是返回错误

go run failureServer.go

打开新窗口,运行successServer.go 该服务端返回成功

go run successServer.go

打开新窗口,运行客户端

go run client.go

见客户端与各服务端打印的日志