Changeset 109 in code for trunk/upstream.go


Ignore:
Timestamp:
Mar 16, 2020, 2:08:56 PM (5 years ago)
Author:
contact
Message:

Protect upstreamConn.history with a lock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r103 r109  
    99        "strconv"
    1010        "strings"
     11        "sync"
    1112        "time"
    1213
     
    4950        modes      modeSet
    5051        channels   map[string]*upstreamChannel
    51         history    map[string]uint64
    5252        caps       map[string]string
    5353
    5454        saslClient  sasl.Client
    5555        saslStarted bool
     56
     57        lock    sync.Mutex
     58        history map[string]uint64 // TODO: move to network
    5659}
    5760
Note: See TracChangeset for help on using the changeset viewer.