Skip to content

Commit

Permalink
Merge pull request #17 from gcggcg/gcg_kis-flow
Browse files Browse the repository at this point in the history
修复CallConnector并发读写问题
  • Loading branch information
aceld authored Apr 1, 2024
2 parents eb96f98 + 44b74ae commit dc5d9a3
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 dc5d9a3

Please sign in to comment.