Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jul 7, 2024
1 parent 3676232 commit db0fa9f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions util/cmd/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ type Options struct {
Config *config.Config
Client *client.Client
Server *server.Server
Runtime *runtime.Runtime
Caches map[string]func(...cache.Option) cache.Cache
Tracer *trace.Tracer
Profiles map[string]func(...profile.Option) profile.Profile
Expand All @@ -49,7 +48,6 @@ type Options struct {
Selectors map[string]func(...selector.Option) selector.Selector
Servers map[string]func(...server.Option) server.Server
Transports map[string]func(...transport.Option) transport.Transport
Runtimes map[string]func(...runtime.Option) runtime.Runtime
Stores map[string]func(...store.Option) store.Store
Tracers map[string]func(...trace.Option) trace.Tracer
Version string
Expand Down Expand Up @@ -110,12 +108,6 @@ func Registry(r *registry.Registry) Option {
}
}

func Runtime(r *runtime.Runtime) Option {
return func(o *Options) {
o.Runtime = r
}
}

func Transport(t *transport.Transport) Option {
return func(o *Options) {
o.Transport = t
Expand Down Expand Up @@ -207,13 +199,6 @@ func NewTransport(name string, t func(...transport.Option) transport.Transport)
}
}

// New runtime func.
func NewRuntime(name string, r func(...runtime.Option) runtime.Runtime) Option {
return func(o *Options) {
o.Runtimes[name] = r
}
}

// New tracer func.
func NewTracer(name string, t func(...trace.Option) trace.Tracer) Option {
return func(o *Options) {
Expand Down

0 comments on commit db0fa9f

Please sign in to comment.