Changeset 181 in code for trunk


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

s/List/LIST/ when referring to the command

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r180 r181  
    11141114                                Params:  params,
    11151115                        }
    1116                         uc.trySendList(dc.id)
     1116                        uc.trySendLIST(dc.id)
    11171117                })
    11181118        case "NAMES":
  • 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)
  • trunk/user.go

    r179 r181  
    173173                                log.file.Close()
    174174                        }
    175                         uc.endPendingLists(true)
     175                        uc.endPendingLISTs(true)
    176176                case eventUpstreamMessage:
    177177                        msg, uc := e.msg, e.uc
Note: See TracChangeset for help on using the changeset viewer.