Update awdl.go to use new link stuff (untested)

This commit is contained in:
Neil Alexander 2019-01-19 00:42:53 +00:00
parent 4ae36dfffe
commit c51a3340b1
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 94 additions and 9 deletions

View file

@ -35,7 +35,7 @@ func (l *link) init(c *Core) error {
return nil
}
func (l *link) create(fromlink chan []byte, tolink chan []byte /*boxPubKey *crypto.BoxPubKey, sigPubKey *crypto.SigPubKey*/, name string) (*linkInterface, error) {
func (l *link) create(fromlink chan []byte, tolink chan []byte, name string) (*linkInterface, error) {
intf := linkInterface{
link: l,
fromlink: fromlink,
@ -101,7 +101,7 @@ func (l *link) shutdown(identity string) error {
l.mutex.Unlock()
return nil
} else {
return errors.New(fmt.Sprintf("Interface '%s' doesn't exist or already shutdown", identity))
return fmt.Errorf("interface '%s' doesn't exist or already shutdown", identity)
}
}