Changed Opts to APIOpts in some structs and fixed multiple integration tests

This commit is contained in:
andronache
2021-03-19 16:53:31 +02:00
committed by Dan Christian Bogos
parent 1b443b5abb
commit 4d4eea8866
24 changed files with 321 additions and 351 deletions

View File

@@ -27,7 +27,7 @@ func init() {
c := &CmdSetFilter{
name: "filter_set",
rpcMethod: utils.APIerSv1SetFilter,
rpcParams: &engine.FilterWithOpts{},
rpcParams: &engine.FilterWithAPIOpts{},
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}
@@ -37,7 +37,7 @@ func init() {
type CmdSetFilter struct {
name string
rpcMethod string
rpcParams *engine.FilterWithOpts
rpcParams *engine.FilterWithAPIOpts
*CommandExecuter
}
@@ -51,7 +51,7 @@ func (self *CmdSetFilter) RpcMethod() string {
func (self *CmdSetFilter) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &engine.FilterWithOpts{Filter: new(engine.Filter)}
self.rpcParams = &engine.FilterWithAPIOpts{Filter: new(engine.Filter)}
}
return self.rpcParams
}