Package list golang-github-go-kit-kit / 91384bb
Merge pull request #82 from andrewwatson/patch-1 fixing reference to mysvcPublisher (fooPublisher) Peter Bourgon 6 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))