Skip to content

Commit

Permalink
Shorten array
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed May 28, 2024
1 parent d9c83de commit dae2e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mls/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (s *Store) PublishIdentityUpdate(ctx context.Context, req *identity.Publish
return errors.New("inbox log is full")
}

updates := make([]*associations.IdentityUpdate, 0, len(inboxLogEntries)+1)
updates := make([]*associations.IdentityUpdate, 0, len(inboxLogEntries))
for _, log := range inboxLogEntries {
identityUpdate := &associations.IdentityUpdate{}
if err := proto.Unmarshal(log.IdentityUpdateProto, identityUpdate); err != nil {
Expand Down

0 comments on commit dae2e97

Please sign in to comment.