Skip to content

Commit f135771

Browse files
authored
Update golang-client-tutorial.md
1 parent 964ed09 commit f135771

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tutorials/golang-client-tutorial.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ To use the following methods, you will need the node URL and your auth token. To
1818

1919
The default URL is `http://localhost:26658`. If you would like to use subscription methods, such as `SubscribeHeaders` below, you must use the `ws` protocol in place of `http`: `ws://localhost:26658`.
2020

21+
> **Important:** Remember to close the client connection when you're done using it to prevent resource leaks:
22+
> ```go
23+
> defer client.Close()
24+
> ```
25+
2126
## Submitting and retrieving blobs
2227
2328
The [blob.Submit](https://node-rpc-docs.celestia.org/#blob.Submit) method takes a slice of blobs and a gas price, returning the height the blob was successfully posted at.

0 commit comments

Comments
 (0)