Currently a GrpcGatway or an Emulator gateway is created with a context and that context is then sent to all calls.
This scales very poorly if you want to use contexts for cancellation or timeouts.
Expected Behavior
A gateway is created without a context and context is sent in to each call in the interface. The flowkit package already accept context in.
Steps To Reproduce
not relevant
Environment
not relevant
What are you currently working on that this is blocking?
When getting blocks in the findlabs api the requests to get blocks sometimes hang for a long time in the client. I want to use timeouts so that i can request from a different endpoint behind the LB.
Current Behavior
Currently a GrpcGatway or an Emulator gateway is created with a context and that context is then sent to all calls.
This scales very poorly if you want to use contexts for cancellation or timeouts.
Expected Behavior
A gateway is created without a context and context is sent in to each call in the interface. The flowkit package already accept context in.
Steps To Reproduce
not relevant
Environment
What are you currently working on that this is blocking?
When getting blocks in the findlabs api the requests to get blocks sometimes hang for a long time in the client. I want to use timeouts so that i can request from a different endpoint behind the LB.