Skip to content

Commit cd6c34a

Browse files
authored
fix: use hex encoded values in stamerindex.Item.String() (#5294)
1 parent 3298411 commit cd6c34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storer/internal/stampindex/stampindex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (i *Item) Clone() storage.Item {
138138

139139
// String implements the fmt.Stringer interface.
140140
func (i Item) String() string {
141-
return storageutil.JoinFields(i.Namespace(), i.ID())
141+
return storageutil.JoinFields(i.Namespace(), fmt.Sprintf("%s/%x/%x", string(i.scope), i.BatchID, i.StampIndex))
142142
}
143143

144144
// LoadOrStore tries to first load a stamp index related record from the store.

0 commit comments

Comments
 (0)