Codebase list golang-github-go-kit-kit / aeebfb1
fixing reference to mysvcPublisher (fooPublisher) Andrew Watson 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2424 func main() {
2525 var (
2626 fooPublisher = loadbalancer.NewDNSSRVPublisher("foo.mynet.local", 5*time.Second, makeEndpoint)
27 fooBalancer = loadbalancer.RoundRobin(mysvcPublisher)
27 fooBalancer = loadbalancer.RoundRobin(fooPublisher)
2828 fooEndpoint = loadbalancer.Retry(3, time.Second, fooBalancer)
2929 )
3030 http.HandleFunc("/", handle(fooEndpoint))