Skip to content

Commit

Permalink
fix obj store
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Mar 25, 2024
1 parent 5c6f18d commit 9a25b09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion store/transient/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ type ObjStore struct {
}

func NewObjStore() *ObjStore {
return &ObjStore{*NewGStore(func(v any) bool { return v == nil }, nil)}
return &ObjStore{*NewGStore(
func(v any) bool { return v == nil },
func(v any) int { return 1 }, // for value length validation
)}
}

func (*ObjStore) GetStoreType() types.StoreType {
Expand Down

0 comments on commit 9a25b09

Please sign in to comment.