Changeset 738 in code for trunk/upstream.go
- Timestamp:
- Dec 2, 2021, 6:29:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r737 r738 386 386 } 387 387 388 func (uc *upstreamConn) cancelPendingCommandsByDownstreamID(downstreamID uint64) { 389 for cmd := range uc.pendingCmds { 390 // We can't cancel the currently running command stored in 391 // uc.pendingCmds[cmd][0] 392 for i := len(uc.pendingCmds[cmd]) - 1; i >= 1; i-- { 393 if uc.pendingCmds[cmd][i].downstreamID == downstreamID { 394 uc.pendingCmds[cmd] = append(uc.pendingCmds[cmd][:i], uc.pendingCmds[cmd][i+1:]...) 395 } 396 } 397 } 398 } 399 388 400 func (uc *upstreamConn) parseMembershipPrefix(s string) (ms *memberships, nick string) { 389 401 memberships := make(memberships, 0, 4)
Note:
See TracChangeset
for help on using the changeset viewer.