bufbuild / httplb

Client-side load balancing for net/http
https://pkg.go.dev/github.com/bufbuild/httplb
Apache License 2.0
48 stars 2 forks source link

Add a ResolveNow method for resolvers #33

Closed jchadwick-buf closed 1 year ago

jchadwick-buf commented 1 year ago
linear[bot] commented 1 year ago
TCN-1982 Update resolver interfaces to support "ResolveNow" operation

Currently, starting a resolve process just returns an `io.Closer`. It should instead return a value that also has a `ResolveNow()` method. We should probably rename `resolver.Resolver` to `resolver.Factory` and the new interface (with `Close() error` and `ResolveNow()` methods) can be called `resolver.Resolver`.