Skip to content

Commit

Permalink
Add log line (keybase#22711)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsteele authored Feb 24, 2020
1 parent 18b4458 commit d149417
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/chat/journey_card_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,10 @@ func (cc *JourneyCardManagerSingleUser) SentMessage(ctx context.Context, teamID
}

func (cc *JourneyCardManagerSingleUser) Dismiss(ctx context.Context, teamID keybase1.TeamID, convID chat1.ConversationID, cardType chat1.JourneycardType) {
err := libkb.AcquireWithContextAndTimeout(ctx, &cc.storageLock, 10*time.Second)
var err error
defer cc.G().CTrace(ctx, fmt.Sprintf("JourneyCardManagerSingleUser.Dismiss(cardType:%v, teamID:%v, convID:%v)",
cardType, teamID, convID.DbShortFormString()), func() error { return err })()
err = libkb.AcquireWithContextAndTimeout(ctx, &cc.storageLock, 10*time.Second)
if err != nil {
cc.Debug(ctx, "Dismiss storageLock error: %v", err)
return
Expand Down

0 comments on commit d149417

Please sign in to comment.