summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-26 21:36:34 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-27 09:12:49 +0900
commit2721daa0d8141a75176dbccdb7736327aea9484c (patch)
treebc9f413e4c11d0187c98013b5fe374c5b1ad5f6f /server/server.go
parentc0e81a21fb4c1c9f2f0c6597f0f8386288ee5b03 (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.go13
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 }()