Skip to content

Commit

Permalink
UUID issue (#1841)
Browse files Browse the repository at this point in the history
* uuid to hex conversion and vice versa

* changed filter id to hex format

* refactored code

* cr fixes
  • Loading branch information
rachit77 committed Aug 22, 2023
1 parent 49216ad commit 2f430d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsonrpc/filter_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ type filterBase struct {

// newFilterBase initializes filterBase with unique ID
func newFilterBase(ws wsConn) filterBase {
uuidObj := uuid.New()

return filterBase{
id: uuid.New().String(),
id: string(encodeToHex(uuidObj[:])),
ws: ws,
heapIndex: NoIndexInHeap,
}
Expand Down

0 comments on commit 2f430d0

Please sign in to comment.