Skip to content

Commit

Permalink
fix(store) add nil processing in lt function
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-li committed Jun 21, 2023
1 parent 4c07350 commit d96087a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/store/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func lt(mi, mj map[string]interface{}) bool {
case *big.Int:
mjs, _ := mj["pk0"].(*big.Int)
return mis.Cmp(mjs) < 0
case nil:
return true
default:
msg := fmt.Sprintf("unhandled type %T\n", mis)
time.Sleep(time.Second)
Expand Down

0 comments on commit d96087a

Please sign in to comment.