From a371b5f962bdac6c27155579237eb8ac870e23ce Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期一, 31 五月 2021 16:32:33 +0800
Subject: [PATCH] fix Init arg
---
agent.go | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/agent.go b/agent.go
index 75be578..22dbcfd 100644
--- a/agent.go
+++ b/agent.go
@@ -276,8 +276,8 @@
}
//Init serf Init
-func Init(clusterID string, password string, nodeID string, addrs []string, snapshotPath string, hef HandleEventFunc) (*Agent, error) {
- agent, err := InitNode(clusterID, password, nodeID, snapshotPath, hef)
+func Init(clusterID string, password string, nodeID string, addrs []string, snapshotPath string) (*Agent, error) {
+ agent, err := InitNode(clusterID, password, nodeID, snapshotPath)
if err != nil {
logger.Error("InitNode failed, error: %s", err)
return agent, err
@@ -293,7 +293,7 @@
}
//InitNode web鍚庡彴鏀跺埌鍒涘缓闆嗙兢鐨勮姹傦紝
-func InitNode(clusterID string, password string, nodeID string, snapshotPath string, hef HandleEventFunc) (*Agent, error) {
+func InitNode(clusterID string, password string, nodeID string, snapshotPath string) (*Agent, error) {
conf := DefaultConfig()
logger.Info("clusterID:", clusterID, "password:", password, "nodeID:", nodeID)
conf.ClusterID = clusterID
--
Gitblit v1.8.0