summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/monitor.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/server/monitor.go b/server/monitor.go
index a265629d..1f445c35 100644
--- a/server/monitor.go
+++ b/server/monitor.go
@@ -41,13 +41,7 @@ func (w *grpcWatcher) stop() {
}
func (w *grpcWatcher) watchingEventTypes() []watcherEventType {
- types := make([]watcherEventType, 0, 4)
- for _, t := range []watcherEventType{WATCHER_EVENT_UPDATE_MSG, WATCHER_EVENT_POST_POLICY_UPDATE_MSG, WATCHER_EVENT_BESTPATH_CHANGE, WATCHER_EVENT_STATE_CHANGE} {
- if len(w.reqs[t]) > 0 {
- types = append(types, t)
- }
- }
- return types
+ return []watcherEventType{WATCHER_EVENT_UPDATE_MSG, WATCHER_EVENT_POST_POLICY_UPDATE_MSG, WATCHER_EVENT_BESTPATH_CHANGE, WATCHER_EVENT_STATE_CHANGE}
}
func (w *grpcWatcher) loop() error {