mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
added context for runnerpool interface (#1320)
* added context for runnerpool interface * added context for runnerpool interface
This commit is contained in:
@@ -40,7 +40,7 @@ func (p *chPlacer) PlaceCall(ctx context.Context, rp RunnerPool, call RunnerCall
|
||||
var runnerPoolErr error
|
||||
for {
|
||||
var runners []Runner
|
||||
runners, runnerPoolErr = rp.Runners(call)
|
||||
runners, runnerPoolErr = rp.Runners(ctx, call)
|
||||
|
||||
i := int(jumpConsistentHash(sum64, int32(len(runners))))
|
||||
for j := 0; j < len(runners) && !state.IsDone(); j++ {
|
||||
|
||||
Reference in New Issue
Block a user