Skip to content

Commit

Permalink
Updating README example
Browse files Browse the repository at this point in the history
  • Loading branch information
0x19 committed Jun 23, 2024
1 parent 20ba836 commit 8a85be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ func main() {
Type: utils.EthereumNetwork,
NetworkId: utils.EthereumNetworkID,
Endpoint: "https://eth.hypersync.xyz",
RpcEndpoint: "...",
},
},
}

ctx, cancel := context.WithCancel(context.Background())
defer cancel()

hsClient, err := hypersyncgo.NewHyperSync(ctx, opts)
hsClient, err := hypersyncgo.NewHyper(ctx, opts)
if err != nil {
fmt.Println(err)
return
Expand Down

0 comments on commit 8a85be3

Please sign in to comment.