Skip to content

Commit

Permalink
Update docs for creating managed clients (#271)
Browse files Browse the repository at this point in the history
As far as I know, there is no method `NewManagedClient`, but managed clients are created using `NewClient` with `ClientConfig.Managed = true`
  • Loading branch information
Acconut authored Aug 22, 2023
1 parent c578839 commit f31f0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func CleanupClients() {
// plugin and gets the address for the RPC connection.
//
// The client must be cleaned up at some point by calling Kill(). If
// the client is a managed client (created with NewManagedClient) you
// the client is a managed client (created with ClientConfig.Managed) you
// can just call CleanupClients at the end of your program and they will
// be properly cleaned.
func NewClient(config *ClientConfig) (c *Client) {
Expand Down

0 comments on commit f31f0fb

Please sign in to comment.