diff options
| author | Amiti Uttarwar <[email protected]> | 2020-07-20 14:24:48 -0700 |
|---|---|---|
| committer | Amiti Uttarwar <[email protected]> | 2020-08-07 17:18:16 -0700 |
| commit | 2f2e13b6c2c8741ca9d825eaaef736ede484bc85 (patch) | |
| tree | 225aa16a085f9bc34a6e96653bec35da60853270 /src/interfaces/node.cpp | |
| parent | [net/refactor] Rework ThreadOpenConnections logic (diff) | |
| download | discoin-2f2e13b6c2c8741ca9d825eaaef736ede484bc85.tar.xz discoin-2f2e13b6c2c8741ca9d825eaaef736ede484bc85.zip | |
[net/refactor] Simplify multiple-connection checks
Extract logic that check multiple connection types into interface functions &
structure as switch statements. This makes it very clear what touch points are
for accessing `m_conn_type` & using the switch statements enables the compiler
to warn if a new connection type is introduced but not handled for these cases.
Diffstat (limited to 'src/interfaces/node.cpp')
0 files changed, 0 insertions, 0 deletions