Skip to content

Commit fac5886

Browse files
committed
Fix meta id caching
1 parent 901195e commit fac5886

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/storage/cached_storage.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package storage
22

33
import (
44
"context"
5+
56
"github.com/numary/ledger/pkg/core"
67
)
78

@@ -31,7 +32,7 @@ func (s *cachedStateStorage) LastMetaID(ctx context.Context) (int64, error) {
3132
if err != nil {
3233
return 0, err
3334
}
34-
*s.lastMetaId = lastMetaID
35+
s.lastMetaId = &lastMetaID
3536
return lastMetaID, nil
3637
}
3738

0 commit comments

Comments
 (0)