1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

vendorin libnetwork @d2edad309cc874e865b5ba4d6bd6b276c93451d3

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
Santhosh Manohar 2017-01-04 11:42:48 -08:00
parent 518945b6bd
commit a0dcdcb95f
27 changed files with 302 additions and 92 deletions

View file

@ -1,7 +1,7 @@
package networkdb
import (
"fmt"
"errors"
"time"
"github.com/hashicorp/memberlist"
@ -90,7 +90,7 @@ func (nDB *NetworkDB) sendNodeEvent(event NodeEvent_Type) error {
select {
case <-notifyCh:
case <-time.After(broadcastTimeout):
return fmt.Errorf("timed out broadcasting node event")
return errors.New("timed out broadcasting node event")
}
return nil