Changeset 40 in code for trunk/server.go
- Timestamp:
- Feb 7, 2020, 10:56:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server.go
r39 r40 36 36 srv *Server 37 37 38 lock sync.Mutex 39 upstreamConns []*upstreamConn 38 lock sync.Mutex 39 upstreamConns []*upstreamConn 40 downstreamConns []*downstreamConn 40 41 } 41 42 … … 47 48 } 48 49 f(uc) 50 } 51 u.lock.Unlock() 52 } 53 54 func (u *user) forEachDownstream(f func(dc *downstreamConn)) { 55 u.lock.Lock() 56 for _, dc := range u.downstreamConns { 57 f(dc) 49 58 } 50 59 u.lock.Unlock()
Note:
See TracChangeset
for help on using the changeset viewer.