Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Mar 15, 2024
1 parent 7a5c46a commit bb6e22d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/gethfork/rpc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package rpc
import (
"context"
"encoding/json"
"fmt"
"reflect"
"strconv"
"strings"
Expand Down Expand Up @@ -302,7 +303,10 @@ func (h *handler) handleNonBatchCall(cp *callProc, msg *jsonrpcMessage) {
h.addSubscriptions(cp.notifiers)
if answer != nil {
responded.Do(func() {
h.conn.writeJSON(cp.ctx, answer, false) //nolint:errcheck
err := h.conn.writeJSON(cp.ctx, answer, false)
if err != nil {
fmt.Printf("ERROR writing resp to connection %s\n", err)
} //nolint:errcheck
})
}
for _, n := range cp.notifiers {
Expand Down

0 comments on commit bb6e22d

Please sign in to comment.