Skip to content

Commit

Permalink
fix main.go addr define code
Browse files Browse the repository at this point in the history
  • Loading branch information
geektutu committed Mar 2, 2020
1 parent 15d8039 commit ee3f70d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions gee-cache/day5-multi-nodes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ func main() {
8003: "http://localhost:8003",
}

addrs := make([]string, 3)

var addrs []string
for _, v := range addrMap {
addrs = append(addrs, v)
}
Expand Down
3 changes: 1 addition & 2 deletions gee-cache/day6-single-flight/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ func main() {
8003: "http://localhost:8003",
}

addrs := make([]string, 3)

var addrs []string
for _, v := range addrMap {
addrs = append(addrs, v)
}
Expand Down
3 changes: 1 addition & 2 deletions gee-cache/day7-proto-buf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ func main() {
8003: "http://localhost:8003",
}

addrs := make([]string, 3)

var addrs []string
for _, v := range addrMap {
addrs = append(addrs, v)
}
Expand Down
3 changes: 1 addition & 2 deletions gee-cache/doc/geecache-day5.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ func main() {
8003: "http://localhost:8003",
}

addrs := make([]string, 3)

var addrs []string
for _, v := range addrMap {
addrs = append(addrs, v)
}
Expand Down

0 comments on commit ee3f70d

Please sign in to comment.