mirror of
https://github.com/bgp/stayrtr.git
synced 2024-05-06 15:54:54 +00:00
More cleanup of unused functions and/or struct contents
This commit is contained in:
@ -147,16 +147,6 @@ var (
|
||||
0: rtr.PROTOCOL_VERSION_0,
|
||||
1: rtr.PROTOCOL_VERSION_1,
|
||||
}
|
||||
authToId = map[string]int{
|
||||
"none": METHOD_NONE,
|
||||
"password": METHOD_PASSWORD,
|
||||
//"key": METHOD_KEY,
|
||||
}
|
||||
serialToId = map[string]int{
|
||||
"disable": USE_SERIAL_DISABLE,
|
||||
"startup": USE_SERIAL_START,
|
||||
"full": USE_SERIAL_FULL,
|
||||
}
|
||||
)
|
||||
|
||||
func initMetrics() {
|
||||
@ -584,7 +574,6 @@ type state struct {
|
||||
lastchange time.Time
|
||||
lastts time.Time
|
||||
sendNotifs bool
|
||||
useSerial int
|
||||
|
||||
fetchConfig *utils.FetchConfig
|
||||
|
||||
|
@ -5,7 +5,6 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"golang.org/x/crypto/ssh"
|
||||
)
|
||||
@ -83,16 +82,7 @@ func (c *ClientSession) sendLoop() {
|
||||
c.wr.Write(pdu.Bytes())
|
||||
}
|
||||
case <-c.quit:
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (c *ClientSession) refreshLoop() {
|
||||
for c.connected {
|
||||
select {
|
||||
case <-time.After(20 * time.Second):
|
||||
// send refresh
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user