1
0
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:
Ben Cartwright-Cox
2023-02-21 22:16:26 +00:00
parent caad9d419f
commit 539a99d76c
2 changed files with 1 additions and 22 deletions

View File

@ -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

View File

@ -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
}
}
}