@@ -30,12 +30,11 @@ type Simulator struct {
3030 envelopeID uint64
3131 metrics * metrics.Metrics
3232
33- pendingEvents chan string
34- pendingRequests chan func (* rpc.EnvelopeEncoder )
35- informScheduleUpdate chan struct {}
36- stop chan struct {}
37- tasks chan taskFn
38- sessionMux sync.Mutex
33+ pendingEvents chan string
34+ pendingRequests chan func (* rpc.EnvelopeEncoder )
35+ stop chan struct {}
36+ tasks chan taskFn
37+ sessionMux sync.Mutex
3938}
4039
4140var errServiceUnavailable = errors .New ("service unavailable" )
@@ -44,15 +43,14 @@ var errServiceUnavailable = errors.New("service unavailable")
4443func New (dm * datamodel.DataModel ) * Simulator {
4544 jar , _ := cookiejar .New (nil )
4645 return & Simulator {
47- server : newNoopServer (),
48- dm : dm ,
49- cookies : jar ,
50- metrics : metrics .NewNoop (),
51- pendingEvents : make (chan string , 5 ),
52- pendingRequests : make (chan func (* rpc.EnvelopeEncoder ), 5 ),
53- informScheduleUpdate : make (chan struct {}, 1 ),
54- stop : make (chan struct {}),
55- tasks : make (chan taskFn , 5 ),
46+ server : newNoopServer (),
47+ dm : dm ,
48+ cookies : jar ,
49+ metrics : metrics .NewNoop (),
50+ pendingEvents : make (chan string , 5 ),
51+ pendingRequests : make (chan func (* rpc.EnvelopeEncoder ), 5 ),
52+ stop : make (chan struct {}),
53+ tasks : make (chan taskFn , 5 ),
5654 }
5755}
5856
0 commit comments