Skip to content

Commit

Permalink
remove deprecated dsl helper func
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M committed Aug 7, 2023
1 parent ef8ef8e commit 237cb0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2/pkg/operators/common/dsl/dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ var (
)

func init() {
_ = dsl.AddMultiSignatureHelperFunction("resolve", []string{
_ = dsl.AddFunction(dsl.NewWithMultipleSignatures("resolve", []string{
"(host string) string",
"(format string) string",
}, func(args ...interface{}) (interface{}, error) {
}, false, func(args ...interface{}) (interface{}, error) {
argCount := len(args)
if argCount == 0 || argCount > 2 {
return nil, dsl.ErrInvalidDslFunction
Expand Down Expand Up @@ -94,7 +94,7 @@ func init() {
}

return "", fmt.Errorf("no records found")
})
}))

dsl.PrintDebugCallback = func(args ...interface{}) error {
gologger.Info().Msgf("print_debug value: %s", fmt.Sprint(args))
Expand Down

0 comments on commit 237cb0b

Please sign in to comment.