modify option setting of server by functional options

This commit is contained in:
smallnest
2017-10-30 19:31:09 +08:00
parent b70fd2d243
commit 24c716b4bd
10 changed files with 77 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ import (
)
func TestZookeeperRegistry(t *testing.T) {
s := server.NewServer(nil)
s := server.NewServer()
r := &ZooKeeperRegisterPlugin{
ServiceAddress: "tcp@127.0.0.1:8972",