brocaar / chirpstack-simulator

Simulator utility for the ChirpStack open-source LoRaWAN Network-Server.
https://www.chirpstack.io
MIT License
64 stars 52 forks source link

Make timeout for connecting to the API server adjustable #13

Open grothesk opened 2 years ago

grothesk commented 2 years ago

Ahoy,

since it could be that the connection to the API server takes longer than one second (leading to a grpc dial error: context deadline exceeded) I made the timeout for the provided context adjustable. The default value is now set to one second, which was previously set as mandatory.

Warm regards, Malte