mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-18 08:26:38 +02:00
more references to runtime
This commit is contained in:
parent
563e0d265d
commit
a3809afbdf
@ -36,7 +36,6 @@ type Options struct {
|
||||
Context context.Context
|
||||
|
||||
Cache cache.Cache
|
||||
Runtime runtime.Runtime
|
||||
Profile profile.Profile
|
||||
Transport transport.Transport
|
||||
Logger logger.Logger
|
||||
@ -62,7 +61,6 @@ func newOptions(opts ...Option) Options {
|
||||
Server: server.DefaultServer,
|
||||
Store: store.DefaultStore,
|
||||
Registry: registry.DefaultRegistry,
|
||||
Runtime: runtime.DefaultRuntime,
|
||||
Transport: transport.DefaultTransport,
|
||||
Context: context.Background(),
|
||||
Signal: true,
|
||||
@ -204,13 +202,6 @@ func Transport(t transport.Transport) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// Runtime sets the runtime.
|
||||
func Runtime(r runtime.Runtime) Option {
|
||||
return func(o *Options) {
|
||||
o.Runtime = r
|
||||
}
|
||||
}
|
||||
|
||||
// Convenience options
|
||||
|
||||
// Address sets the address of the server.
|
||||
|
Loading…
Reference in New Issue
Block a user