EnsoFinance / temper

Temper your expectations - Ethereum Transaction Simulator
MIT License
343 stars 43 forks source link

[QUESTION] Persistent simulation: How to end a session? #11

Closed vinerz closed 1 year ago

vinerz commented 1 year ago

Hey there! First of all, thank you for such a blazing fast implementation of a transaction simulator. I am still stunned about how performant it is.

As a disclaimer, my knowledge about Rust memory allocation is far from the best.

I am using a multi-step simulation getting a session ID and I wasn't able to find an endpoint to close such a session, so in my understanding, this session will be kept in memory during the entire runtime unless the server is restarted, right? As I am hammering the service with thousands of different concurrent sessions that won't be reused, I got a bit worried about them lingering for eternity.

Am I correct in this assumption?

Cheers!

ape-dev-cs commented 1 year ago

Yeah, this is a messup in my implementation. I'll open a PR soon to add one.

ape-dev-cs commented 1 year ago

Addressed here: https://github.com/EnsoFinance/transaction-simulator/pull/12