diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-06-23 22:33:08 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-06-23 22:33:08 +0900 |
commit | c9e86a9416503f6b128bf3c0329c8f612525b919 (patch) | |
tree | 54b79f5c01bc2960fd05e3ce6fd00b9762957402 /server/server.go | |
parent | e8a596e4cdbea73b0778313837312c7eed7a79cf (diff) |
server: delete unused functions and variables
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/server/server.go b/server/server.go index 757b645e..a2662a4d 100644 --- a/server/server.go +++ b/server/server.go @@ -95,7 +95,6 @@ type BgpServer struct { fsmincomingCh *channels.InfiniteChannel fsmStateCh chan *FsmMsg acceptCh chan *net.TCPConn - collector *Collector GrpcReqCh chan *GrpcRequest policy *table.RoutingPolicy @@ -1499,17 +1498,6 @@ func (server *BgpServer) handleModConfig(grpcReq *GrpcRequest) error { return nil } -func sendMultipleResponses(grpcReq *GrpcRequest, results []*GrpcResponse) { - defer close(grpcReq.ResponseCh) - for _, r := range results { - select { - case grpcReq.ResponseCh <- r: - case <-grpcReq.EndCh: - return - } - } -} - func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) { logOp := func(addr string, action string) { log.WithFields(log.Fields{ |