Split signal segmenter and reassembler. (#3805)
* Split signal segmenter and reassembler. As reassembler may need to run a goroutine for pruning, splitting it up so that we do not have unnecessary goroutines. Keeping the UT unified though. Also, for now, trying to see if `Prune` can be called from external place to avoid creating a goroutine and have extra state/functions to close the reassembler and clean up goroutine etc. May still have to do goroutine, but have not created one for now. * fix: do not increase packetId for each fragment of a packet
This commit is contained in:
@@ -31,8 +31,7 @@ type signallingv2 struct {
|
||||
|
||||
params Signallingv2Params
|
||||
|
||||
signalCache *SignalCache
|
||||
signalFragment *SignalFragment
|
||||
signalCache *SignalCache
|
||||
}
|
||||
|
||||
func NewSignallingv2(params Signallingv2Params) ParticipantSignalling {
|
||||
@@ -41,9 +40,6 @@ func NewSignallingv2(params Signallingv2Params) ParticipantSignalling {
|
||||
signalCache: NewSignalCache(SignalCacheParams{
|
||||
Logger: params.Logger,
|
||||
}),
|
||||
signalFragment: NewSignalFragment(SignalFragmentParams{
|
||||
Logger: params.Logger,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user