Add context options to the runtime

This commit is contained in:
Ben Toogood 2020-04-14 12:32:59 +01:00 committed by Vasiliy Tolstov
parent 58cd0f660f
commit 43fa6998f6

View File

@ -419,7 +419,7 @@ func (c *cache) watch(w registry.Watcher) error {
}
}
func (c *cache) GetService(service string) ([]*registry.Service, error) {
func (c *cache) GetService(service string, opts ...registry.GetOption) ([]*registry.Service, error) {
// get the service
services, err := c.get(service)
if err != nil {