Skip to content

Commit

Permalink
make sure we have token data on batch hit (#22260)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaxim committed Jan 29, 2020
1 parent b308642 commit 054fc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/chat/search/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (b *batchingStore) GetTokenEntry(ctx context.Context, convID chat1.Conversa
b.Lock()
defer b.Unlock()
batch, ok := b.tokenBatch[convID.ConvIDStr()]
if ok {
if ok && batch.tokens[token] != nil {
return batch.tokens[token].dup(), nil
}
key, err := tokenKey(ctx, b.uid, convID, token, b.keyFn)
Expand Down

0 comments on commit 054fc11

Please sign in to comment.