portlist: move code around to avoid unused function warnings.

This commit is contained in:
David Anderson
2020-04-30 20:30:47 -07:00
parent 755fd9253c
commit 9396024bd7
3 changed files with 35 additions and 24 deletions

View File

@@ -4,7 +4,9 @@
package portlist
import "time"
import (
"time"
)
// Forking on Windows is insanely expensive, so don't do it too often.
const pollInterval = 5 * time.Second