Skip to content

Commit

Permalink
cancel NewFuncConfig check S and L option
Browse files Browse the repository at this point in the history
  • Loading branch information
aceld committed Apr 3, 2024
1 parent dd634e6 commit 0c058d3
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions config/kis_func_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ func NewFuncConfig(

config.FMode = string(mode)

// FunctionS 和 L 需要必传KisConnector参数,原因是S和L需要通过Connector进行建立流式关系
if mode == common.S || mode == common.L {
if option == nil {
log.Logger().ErrorF("Funcion S/L need option->Cid\n")
return nil
} else if option.CName == "" {
log.Logger().ErrorF("Funcion S/L need option->Cid\n")
return nil
/*
// FunctionS 和 L 需要必传KisConnector参数,原因是S和L需要通过Connector进行建立流式关系
if mode == common.S || mode == common.L {
if option == nil {
log.Logger().ErrorF("Funcion S/L need option->Cid\n")
return nil
} else if option.CName == "" {
log.Logger().ErrorF("Funcion S/L need option->Cid\n")
return nil
}
}
}
*/

if option != nil {
config.Option = *option
Expand Down

0 comments on commit 0c058d3

Please sign in to comment.