Add store to options (#1600)

This commit is contained in:
Asim Aslam
2020-05-01 18:05:09 +01:00
committed by GitHub
parent 08a2de1ef5
commit b3915b6020
3 changed files with 17 additions and 0 deletions

View File

@@ -118,6 +118,12 @@ func Server(s *server.Server) Option {
}
}
func Store(s *store.Store) Option {
return func(o *Options) {
o.Store = s
}
}
func Tracer(t *trace.Tracer) Option {
return func(o *Options) {
o.Tracer = t