Update portbase

This commit is contained in:
Vladimir Stoilov
2023-04-20 15:20:56 +02:00
parent 7667fc26e8
commit 3558e83d69
4 changed files with 5 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ func connectionCleaner(ctx context.Context) error {
case <-ctx.Done():
ticker.Stop()
return nil
case <-ticker.Read():
case <-ticker.Wait():
// clean connections and processes
activePIDs := cleanConnections()
process.CleanProcessStorage(activePIDs)

View File

@@ -91,7 +91,7 @@ func openDNSRequestWriter(ctx context.Context) error {
select {
case <-ctx.Done():
return nil
case <-ticker.Read():
case <-ticker.Wait():
writeOpenDNSRequestsToDB()
}
}