Skip to content

Commit

Permalink
Fix : Resolve build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
OBlackmon3 committed Oct 22, 2024
1 parent b387991 commit 21f9a1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions common/json_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/json"
"fmt"
"io"
"log"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -474,7 +473,7 @@ func (r *JsonRpcRequest) UnmarshalJSON(data []byte) error {
return nil
}

func (r *JsonRpcResponse) MarshalZerologObject(e *zerolog.Event) {
func (r *JsonRpcRequest) MarshalZerologObject(e *zerolog.Event) {
if r == nil {
return
}
Expand Down
9 changes: 0 additions & 9 deletions common/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,9 @@ func (r *NormalizedRequest) Id() int64 {
return 0
}

r.RLock()
if r.jsonRpcRequest != nil {
return r.jsonRpcRequest.ID
}
r.RUnlock()

r.Lock()
defer r.Unlock()

if r.uid != "" {
return r.uid
}

if len(r.body) > 0 {
idnode, err := sonic.Get(r.body, "id")
Expand Down

0 comments on commit 21f9a1c

Please sign in to comment.