Changeset 451 in code for trunk/user.go
- Timestamp:
- Feb 10, 2021, 10:31:34 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user.go
r450 r451 56 56 type eventStop struct{} 57 57 58 type networkHistory struct {59 clients map[string]string // indexed by client name60 }61 62 58 type network struct { 63 59 Network … … 67 63 conn *upstreamConn 68 64 channels map[string]*Channel 69 history map[string]*networkHistory // indexed by entity70 offlineClients map[string]struct{} // indexed by client name65 delivered map[string]map[string]string // entity -> client name -> msg ID 66 offlineClients map[string]struct{} // indexed by client name 71 67 lastError error 72 68 } … … 84 80 stopped: make(chan struct{}), 85 81 channels: m, 86 history: make(map[string]*networkHistory),82 delivered: make(map[string]map[string]string), 87 83 offlineClients: make(map[string]struct{}), 88 84 } … … 231 227 } 232 228 233 if net.history[ch.Name] != nil{229 if _, ok := net.delivered[ch.Name]; ok { 234 230 dc.sendNetworkBacklog(net) 235 231 }
Note:
See TracChangeset
for help on using the changeset viewer.