Skip to content

Commit b1b4f7d

Browse files
authored
Merge pull request #120 from numary/fix/cached_meta
Fix meta id caching
2 parents 901195e + fac5886 commit b1b4f7d

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)