This commit is contained in:
Michael Crosby 2018-09-14 20:46:35 +00:00 committed by GitHub
commit 47f320edee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,11 @@ func NewAgent(cfg *Config) (*Agent, error) {
if err != nil {
return nil, err
}
if len(cfg.Peers) > 0 {
if _, err := ml.Join(cfg.Peers); err != nil {
return nil, err
}
}
return &Agent{
config: cfg,
members: ml,