mirror of
https://github.com/smallnest/rpcx.git
synced 2025-12-24 12:27:56 +08:00
update consul comments
This commit is contained in:
@@ -11,8 +11,7 @@ import (
|
||||
"github.com/smallnest/rpcx/log"
|
||||
)
|
||||
|
||||
//ConsulRegisterPlugin a register plugin which can register services into consul for cluster
|
||||
//This registry is experimental and has not been test.
|
||||
//ConsulRegisterPlugin a register plugin which can register services into consul for cluster.
|
||||
type ConsulRegisterPlugin struct {
|
||||
ServiceAddress string
|
||||
ConsulAddress string
|
||||
|
||||
@@ -17,7 +17,6 @@ func TestConsulRegisterPlugin_Register(t *testing.T) {
|
||||
plugin := &ConsulRegisterPlugin{
|
||||
ServiceAddress: "tcp@127.0.0.1:1234",
|
||||
ConsulAddress: "localhost:8500",
|
||||
Services: make([]string, 1),
|
||||
UpdateInterval: time.Second,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user