Skip to content

Commit 303f345

Browse files
authored
Merge pull request #53 from anyproto/GO-2836-coordinator-acl
GO-2836 revert recs for storage init
2 parents 2731759 + fc8187a commit 303f345

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

acl/object.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package acl
22

33
import (
44
"context"
5+
"slices"
56
"sync"
67
"time"
78

@@ -51,6 +52,7 @@ type aclObject struct {
5152
func (a *aclObject) AddConsensusRecords(recs []*consensusproto.RawRecordWithId) {
5253
a.mu.Lock()
5354
defer a.mu.Unlock()
55+
slices.Reverse(recs)
5456
if a.store == nil {
5557
defer close(a.ready)
5658
if a.store, a.consErr = liststorage.NewInMemoryAclListStorage(a.id, recs); a.consErr != nil {

0 commit comments

Comments
 (0)