Create function for keeping track of number of connections
Closed this issue · 3 comments
jakobj commented
The following piece of code appears in several places in ConnectionManager
and should be moved to a function
if ( num_connections_[ tid ].size() <= syn_id )
{
num_connections_[ tid ].resize( syn_id + 1 );
}
++num_connections_[ tid ][ syn_id ];
jakobj commented
This appears three times, in connect
, connect_from_device
and connect_to_device
. @jarsi, could you work on this? just create a function, e.g., increase_connection_count( tid, syn_id)
to remove some duplicated code.
jarsi commented
Sure, will try to remove some duplications.
Jakob Jordan <notifications@github.com> schrieb am Mi., 4. Apr. 2018, 16:35:
… This appears three times, in connect, connect_from_device and
connect_to_device. @jarsi <https://github.com/jarsi>, could you work on
this? just create a function, e.g., increase_connection_count( tid,
syn_id) to remove some duplicated code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhDFz9CjojDiyw-t2dUg01lKUoOs3di7ks5tlNpGgaJpZM4Sj-8u>
.