mirror of
https://github.com/aceld/kis-flow.git
synced 2025-01-23 07:30:23 +08:00
commit
dc5d9a3d82
@ -213,6 +213,8 @@ func (pool *kisPool) CaaS(cname string, fname string, mode common.KisMode, c Caa
|
|||||||
|
|
||||||
// CallConnector 调度 Connector
|
// CallConnector 调度 Connector
|
||||||
func (pool *kisPool) CallConnector(ctx context.Context, flow Flow, conn Connector, args interface{}) error {
|
func (pool *kisPool) CallConnector(ctx context.Context, flow Flow, conn Connector, args interface{}) error {
|
||||||
|
pool.cLock.RLock() // 读锁
|
||||||
|
defer pool.cLock.RUnlock()
|
||||||
fn := flow.GetThisFunction()
|
fn := flow.GetThisFunction()
|
||||||
fnConf := fn.GetConfig()
|
fnConf := fn.GetConfig()
|
||||||
mode := common.KisMode(fnConf.FMode)
|
mode := common.KisMode(fnConf.FMode)
|
||||||
|
Loading…
Reference in New Issue
Block a user