mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Changed Opts to APIOpts in multiple structs used in apier/
This commit is contained in:
committed by
Dan Christian Bogos
parent
32c234a6c7
commit
38b02c642c
@@ -36,7 +36,7 @@ func init() {
|
||||
type CmdSetDispatcherHost struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *engine.DispatcherHostWithOpts
|
||||
rpcParams *engine.DispatcherHostWithAPIOpts
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -50,9 +50,9 @@ func (self *CmdSetDispatcherHost) RpcMethod() string {
|
||||
|
||||
func (self *CmdSetDispatcherHost) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &engine.DispatcherHostWithOpts{
|
||||
self.rpcParams = &engine.DispatcherHostWithAPIOpts{
|
||||
DispatcherHost: new(engine.DispatcherHost),
|
||||
Opts: make(map[string]interface{}),
|
||||
APIOpts: make(map[string]interface{}),
|
||||
}
|
||||
}
|
||||
return self.rpcParams
|
||||
|
||||
Reference in New Issue
Block a user