add Config func

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2018-06-07 01:17:03 -04:00
parent 752f9b0d09
commit aa0c2abf84
No known key found for this signature in database
GPG Key ID: A519480096146526
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ type Config struct {
Peers []string
}
func (a *Agent) Config() *Config {
return a.config
}
func setupMemberlistConfig(cfg *Config, peerUpdateChan chan bool, nodeEventChan chan *NodeEvent) (*memberlist.Config, error) {
var mc *memberlist.Config
switch cfg.ConnectionType {