Changeset 181 in code for trunk/upstream.go


Ignore:
Timestamp:
Mar 28, 2020, 12:03:00 AM (5 years ago)
Author:
contact
Message:

s/List/LIST/ when referring to the command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r180 r181  
    188188}
    189189
    190 func (uc *upstreamConn) getPendingList() *pendingLIST {
     190func (uc *upstreamConn) getPendingLIST() *pendingLIST {
    191191        for _, pl := range uc.user.pendingLISTs {
    192192                if _, ok := pl.pendingCommands[uc.network.ID]; !ok {
     
    198198}
    199199
    200 func (uc *upstreamConn) endPendingLists(all bool) (found bool) {
     200func (uc *upstreamConn) endPendingLISTs(all bool) (found bool) {
    201201        found = false
    202202        for i := 0; i < len(uc.user.pendingLISTs); i++ {
     
    221221                        delete(uc.pendingLISTDownstreamSet, pl.downstreamID)
    222222                        uc.user.forEachUpstream(func(uc *upstreamConn) {
    223                                 uc.trySendList(pl.downstreamID)
     223                                uc.trySendLIST(pl.downstreamID)
    224224                        })
    225225                        return
     
    229229}
    230230
    231 func (uc *upstreamConn) trySendList(downstreamID uint64) {
     231func (uc *upstreamConn) trySendLIST(downstreamID uint64) {
    232232        // must be called with a lock in uc.user.pendingLISTsLock
    233233
     
    959959                }
    960960
    961                 pl := uc.getPendingList()
     961                pl := uc.getPendingLIST()
    962962                if pl == nil {
    963963                        return fmt.Errorf("unexpected RPL_LIST: no matching pending LIST")
     
    972972                })
    973973        case irc.RPL_LISTEND:
    974                 ok := uc.endPendingLists(false)
     974                ok := uc.endPendingLISTs(false)
    975975                if !ok {
    976976                        return fmt.Errorf("unexpected RPL_LISTEND: no matching pending LIST")
     
    12461246
    12471247                if command == "LIST" {
    1248                         ok := uc.endPendingLists(false)
     1248                        ok := uc.endPendingLISTs(false)
    12491249                        if !ok {
    12501250                                return fmt.Errorf("unexpected response for LIST: %q: no matching pending LIST", msg.Command)
Note: See TracChangeset for help on using the changeset viewer.