Revert "Bring back debug.FreeOSMemory() call"

This reverts commit 1cce863bbb.
This commit is contained in:
M. Mert Yildiran 2022-04-27 18:21:24 +03:00
parent 3d9f37ab4b
commit 69538cb7e3
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -2,7 +2,6 @@ package tap
import (
"runtime"
_debug "runtime/debug"
"sync"
"time"
@ -48,7 +47,6 @@ func (streamMap *tcpStreamMap) CloseTimedoutTcpStreamChannels() {
for {
<-ticker.C
_debug.FreeOSMemory()
streamMap.streams.Range(func(key interface{}, value interface{}) bool {
stream := value.(*tcpStream)
if stream.protoIdentifier.Protocol == nil {