rpc: adjust client documentation

This commit is contained in:
Anna Shaleva 2021-09-08 13:02:14 +03:00
parent 913e3878c5
commit df8141ff7d
4 changed files with 25 additions and 9 deletions

View file

@ -19,6 +19,12 @@ func Example() {
os.Exit(1)
}
err = c.Init()
if err != nil {
fmt.Println(err)
os.Exit(1)
}
if err := c.Ping(); err != nil {
fmt.Println(err)
os.Exit(1)