We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c1564 commit 61b3670Copy full SHA for 61b3670
lntest/fee_service.go
@@ -115,14 +115,13 @@ func (f *FeeService) Start() error {
115
// handleRequest handles a client request for fee estimates.
116
func (f *FeeService) handleRequest(w http.ResponseWriter, _ *http.Request) {
117
f.lock.Lock()
118
- defer f.lock.Unlock()
119
-
120
bytes, err := json.Marshal(
121
chainfee.WebAPIResponse{
122
FeeByBlockTarget: f.feeRateMap,
123
MinRelayFeerate: f.minRelayFeerate,
124
},
125
)
+ f.lock.Unlock()
126
require.NoErrorf(f, err, "cannot serialize estimates")
127
128
_, err = io.WriteString(w, string(bytes))
0 commit comments