server: remove restart() from watcher interface

Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
ISHIDA Wataru
2016-06-10 01:47:10 +00:00
parent 50bf0d34d3
commit d218ff032a
5 changed files with 0 additions and 17 deletions
-4
View File
@@ -227,10 +227,6 @@ func (w *bmpWatcher) loop() error {
}
}
func (w *bmpWatcher) restart(string) error {
return nil
}
func bmpPeerUp(laddr string, lport, rport uint16, sent, recv *bgp.BGPMessage, t uint8, policy bool, pd uint64, peeri *table.PeerInfo, timestamp int64) *bmp.BMPMessage {
ph := bmp.NewBMPPeerHeader(t, policy, pd, peeri.Address.String(), peeri.AS, peeri.ID.String(), float64(timestamp))
return bmp.NewBMPPeerUpNotification(*ph, laddr, lport, rport, sent, recv)
-4
View File
@@ -50,10 +50,6 @@ func (c *Collector) notify(t watcherEventType) chan watcherEvent {
func (c *Collector) stop() {
}
func (c *Collector) restart(filename string) error {
return nil
}
func (c *Collector) watchingEventTypes() []watcherEventType {
return []watcherEventType{WATCHER_EVENT_UPDATE_MSG, WATCHER_EVENT_STATE_CHANGE, WATCHER_EVENT_ADJ_IN}
}
-4
View File
@@ -186,10 +186,6 @@ func (w *grpcWatcher) loop() error {
}
}
func (w *grpcWatcher) restart(string) error {
return nil
}
func (w *grpcWatcher) addRequest(req *GrpcRequest) error {
w.ctlCh <- req
return nil
-1
View File
@@ -93,7 +93,6 @@ type watcherEventBestPathMsg struct {
type watcher interface {
notify(watcherEventType) chan watcherEvent
restart(string) error
stop()
watchingEventTypes() []watcherEventType
}
-4
View File
@@ -184,10 +184,6 @@ func (w *zebraWatcher) stop() {
w.t.Kill(nil)
}
func (w *zebraWatcher) restart(filename string) error {
return nil
}
func (w *zebraWatcher) watchingEventTypes() []watcherEventType {
return []watcherEventType{WATCHER_EVENT_BESTPATH_CHANGE}
}