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:
parent
518945b6bd
commit
a0dcdcb95f
27 changed files with 302 additions and 92 deletions
4
vendor/github.com/docker/libnetwork/networkdb/broadcast.go
generated
vendored
4
vendor/github.com/docker/libnetwork/networkdb/broadcast.go
generated
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue