gagliardetto / solana-go

Go SDK library and RPC client for the Solana Blockchain
Apache License 2.0
942 stars 266 forks source link

fix memory leak in ws client #228

Closed SC4RECOIN closed 1 month ago

SC4RECOIN commented 4 months ago

if the write fails then an error is returned but the sub still exists in the map with no way to clear it

sub objects are pretty large which leads to a significant memory leak on repeated calls with write failures

gagliardetto commented 1 month ago

thank you!