Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 779ead7

Browse files
committed
Refactor name of function
This change will make is easier to understand what is actually going on i.e. we're getting a clone and not the original version of inflightRequests. Resolves: #630 (comment)
1 parent a1d75a0 commit 779ead7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/frame.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (f *Frame) inflightRequestsLen() int {
148148
return len(f.inflightRequests)
149149
}
150150

151-
func (f *Frame) getInflightRequest() map[network.RequestID]bool {
151+
func (f *Frame) cloneInflightRequests() map[network.RequestID]bool {
152152
f.inflightRequestsMu.RLock()
153153
defer f.inflightRequestsMu.RUnlock()
154154

common/frame_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func (m *FrameManager) requestFailed(req *Request, canceled bool) {
446446
}
447447
frame.deleteRequest(req.getID())
448448

449-
ifr := frame.getInflightRequest()
449+
ifr := frame.cloneInflightRequests()
450450
switch rc := len(ifr); {
451451
case rc == 0:
452452
frame.startNetworkIdleTimer()

0 commit comments

Comments
 (0)