Skip to content

Commit

Permalink
修复CallConnector并发读写问题
Browse files Browse the repository at this point in the history
  • Loading branch information
葛春光 committed Apr 1, 2024
1 parent fe5e08f commit 44b74ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kis/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ func (pool *kisPool) CaaS(cname string, fname string, mode common.KisMode, c Caa

// CallConnector 调度 Connector
func (pool *kisPool) CallConnector(ctx context.Context, flow Flow, conn Connector, args interface{}) error {
pool.cLock.RLock() // 读锁
defer pool.cLock.RUnlock()
fn := flow.GetThisFunction()
fnConf := fn.GetConfig()
mode := common.KisMode(fnConf.FMode)
Expand Down

0 comments on commit 44b74ae

Please sign in to comment.