Skip to content

Commit

Permalink
update: client examples
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz committed Oct 10, 2022
1 parent b863b7d commit fc79e79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
</p>

<p align="center">
<img src="https://img.shields.io/badge/Golang-1.18-66ADD8?style=for-the-badge&logo=go" alt="go version" />
<img src="https://img.shields.io/badge/Version-1.1.2-red?style=for-the-badge&logo=github" alt="version" /><br />
<img src="https://img.shields.io/badge/Golang-1.19-66ADD8?style=for-the-badge&logo=go" alt="go version" />
<img src="https://img.shields.io/badge/Version-1.1.3-red?style=for-the-badge&logo=github" alt="version" /><br />
<img src="https://img.shields.io/badge/MacOS-black?style=for-the-badge&logo=apple" alt="version" />
<img src="https://img.shields.io/badge/Linux-white?style=for-the-badge&logo=linux" alt="version" />
<img src="https://img.shields.io/badge/Windows-blue?style=for-the-badge&logo=windows" alt="version" />
Expand Down Expand Up @@ -51,7 +51,7 @@ import (
)

func main() {
client, err := stallion.NewClient("localhost:9090")
client, err := stallion.NewClient("st://localhost:9090")
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions example/client/multi-subscribe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (
)

func main() {
client, err := stallion.NewClient("localhost:9090")
client, err := stallion.NewClient("st://localhost:9090")
if err != nil {
panic(err)
}

for i := 0; i < 2; i++ {
go func(j int) {
cli, er := stallion.NewClient("localhost:9090")
cli, er := stallion.NewClient("st://localhost:9090")
if er != nil {
log.Fatal(er)
}
Expand Down
2 changes: 1 addition & 1 deletion example/client/simple-publish/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func main() {
client, err := stallion.NewClient("localhost:9090")
client, err := stallion.NewClient("st://localhost:9090")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit fc79e79

Please sign in to comment.