mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
cleanup/fixes from go vet
This commit is contained in:
parent
12cc7fc639
commit
6d0e40045a
3 changed files with 2 additions and 6 deletions
|
@ -200,8 +200,6 @@ func (c *cryptokey) addRoute(cidr string, dest string) error {
|
|||
c.core.log.Println("Added CKR destination subnet", cidr)
|
||||
return nil
|
||||
}
|
||||
|
||||
return errors.New("Unspecified error")
|
||||
}
|
||||
|
||||
// Looks up the most specific route for the given address (with the address
|
||||
|
@ -332,7 +330,7 @@ func (c *cryptokey) removeRoute(cidr string, dest string) error {
|
|||
for k := range *routingcache {
|
||||
delete(*routingcache, k)
|
||||
}
|
||||
c.core.log.Println("Removed CKR destination subnet %s via %s", cidr, dest)
|
||||
c.core.log.Printf("Removed CKR destination subnet %s via %s\n", cidr, dest)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue