Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

maslianko-bloXroute
Copy link

Frequent resubscriptions may prevent synchronized closed channel checks, potentially leading to panic:

panic: send on closed channel

goroutine 1688260 [running]:
github.com/gagliardetto/solana-go/rpc/ws.(*Client).handleSubscriptionMessage(0xc001250720, 0x2, {0xc0002e6800, 0x95, 0x200})
	/vendor/github.com/gagliardetto/solana-go/rpc/ws/client.go:258 +0x34b
github.com/gagliardetto/solana-go/rpc/ws.(*Client).handleMessage(0xc001250720, {0xc0002e6800, 0x95, 0x200})
	/vendor/github.com/gagliardetto/solana-go/rpc/ws/client.go:191 +0x10b
github.com/gagliardetto/solana-go/rpc/ws.(*Client).receiveMessages(0xc001250720)
	/vendor/github.com/gagliardetto/solana-go/rpc/ws/client.go:153 +0x1f
created by github.com/gagliardetto/solana-go/rpc/ws.ConnectWithOptions in goroutine 6
	/vendor/github.com/gagliardetto/solana-go/rpc/ws/client.go:121 +0x356

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant