Skip to content

Commit

Permalink
fix: seed peer reuse value
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed May 30, 2022
1 parent b1c30cf commit 9cd5614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/daemon/peer/peertask_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (ptm *peerTaskManager) StartSeedTask(ctx context.Context, req *SeedTaskRequ
response, ok := ptm.tryReuseSeedPeerTask(ctx, req)
if ok {
metrics.PeerTaskCacheHitCount.Add(1)
return response, false, nil
return response, true, nil
}

var limit = rate.Inf
Expand All @@ -360,7 +360,7 @@ func (ptm *peerTaskManager) StartSeedTask(ctx context.Context, req *SeedTaskRequ
return nil, false, err
}

return response, true, nil
return response, false, nil
}

type SubscribeResponse struct {
Expand Down

0 comments on commit 9cd5614

Please sign in to comment.