mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-23 21:44:41 +02:00
more references to runtime
This commit is contained in:
@@ -36,7 +36,6 @@ type Options struct {
|
|||||||
Context context.Context
|
Context context.Context
|
||||||
|
|
||||||
Cache cache.Cache
|
Cache cache.Cache
|
||||||
Runtime runtime.Runtime
|
|
||||||
Profile profile.Profile
|
Profile profile.Profile
|
||||||
Transport transport.Transport
|
Transport transport.Transport
|
||||||
Logger logger.Logger
|
Logger logger.Logger
|
||||||
@@ -62,7 +61,6 @@ func newOptions(opts ...Option) Options {
|
|||||||
Server: server.DefaultServer,
|
Server: server.DefaultServer,
|
||||||
Store: store.DefaultStore,
|
Store: store.DefaultStore,
|
||||||
Registry: registry.DefaultRegistry,
|
Registry: registry.DefaultRegistry,
|
||||||
Runtime: runtime.DefaultRuntime,
|
|
||||||
Transport: transport.DefaultTransport,
|
Transport: transport.DefaultTransport,
|
||||||
Context: context.Background(),
|
Context: context.Background(),
|
||||||
Signal: true,
|
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
|
// Convenience options
|
||||||
|
|
||||||
// Address sets the address of the server.
|
// Address sets the address of the server.
|
||||||
|
|||||||
Reference in New Issue
Block a user