lightningdevkit / ldk-node

A ready-to-go node implementation built using LDK.
Other
140 stars 72 forks source link

Failed to bind should not panic #318

Open rolznz opened 2 months ago

rolznz commented 2 months ago

If you run on a port that is already in use, the following will occur:

thread 'tokio-runtime-worker' panicked at src/lib.rs:513:45:
Failed to bind to listen address/port - is something else already listening on it?
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
signal: aborted (core dumped)

It would be nice instead to return an error message