Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lonng authored Sep 28, 2017
1 parent a7c8b10 commit aefec9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type RemoteComponent struct {
}
```

- Second, fetch all grpc servers infomation from services like `etcd` or `consul` in `nano` lifetime callback
- Second, fetch all grpc servers infomation from services like `etcd` or `consul` in `nano` lifetime hooks
```go
type ServerInfo struct {
Host string `json:"host"`
Expand All @@ -51,7 +51,7 @@ type ServerInfo struct {
// lifetime callback
func (r *RemoteComponent) Init() {
// fetch server list from etcd
resp, err := http.Get("http://your_etcd_server")
resp, err := http.Get("http://your_etcd_server/backend/server_list/area/10023")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit aefec9f

Please sign in to comment.