config: add getters for URLs to avoid nils (#777)

* config: add getters for URLs to avoid nils

* allow nil url for cache grpc client connection in authenticate
This commit is contained in:
Caleb Doxsey 2020-05-26 11:36:18 -06:00 committed by GitHub
parent 39187eb305
commit f770ccfedd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 19 deletions

2
cache/cache.go vendored
View file

@ -68,7 +68,7 @@ func newCacheStore(name string, o *config.Options) (s kv.Store, err error) {
s, err = autocache.New(&autocache.Options{
SharedKey: o.SharedKey,
Log: stdlog.New(acLog, "", 0),
ClusterDomain: o.CacheURL.Hostname(),
ClusterDomain: o.GetCacheURL().Hostname(),
})
default:
return nil, fmt.Errorf("cache: unknown store: %s", name)