diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-26 21:36:34 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-27 09:12:49 +0900 |
commit | 2721daa0d8141a75176dbccdb7736327aea9484c (patch) | |
tree | bc9f413e4c11d0187c98013b5fe374c5b1ad5f6f /server/server.go | |
parent | c0e81a21fb4c1c9f2f0c6597f0f8386288ee5b03 (diff) |
remove unused SetGlobalType function
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/server/server.go b/server/server.go index 35b2388b..0fc661f5 100644 --- a/server/server.go +++ b/server/server.go @@ -817,19 +817,6 @@ func (server *BgpServer) handleFSMMessage(peer *Peer, e *FsmMsg) { return } -func (server *BgpServer) SetGlobalType(g config.Global) error { - ch := make(chan *GrpcResponse) - server.GrpcReqCh <- &GrpcRequest{ - RequestType: REQ_START_SERVER, - Data: &g, - ResponseCh: ch, - } - if err := (<-ch).Err(); err != nil { - return err - } - return nil -} - func (s *BgpServer) StartCollector(c *config.CollectorConfig) (err error) { ch := make(chan struct{}) defer func() { <-ch }() |