Skip to content

Commit

Permalink
Comment the reason for callGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickxb committed Dec 2, 2015
1 parent 0a9fd85 commit 9776ad1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/service/identify.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func (h *IdentifyHandler) Identify(_ context.Context, arg keybase1.IdentifyArg)
return *exp, nil
}

// If there is already an identify in progress for arg.UserAssertion, using callGroup here will
// just wait for that one to finish and use its result instead of spawning a concurrent identify
// call for the same user assertion.
v, err := h.callGroup.Do(arg.UserAssertion, do)
if err != nil {
return keybase1.IdentifyRes{}, err
Expand Down

0 comments on commit 9776ad1

Please sign in to comment.