SelectWithTimeout && WaitWithTImeout now use time.Duration

This commit is contained in:
2023-12-01 20:23:27 -06:00
parent e33b7c0556
commit 899b95b4e6
3 changed files with 12 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ import (
"os"
"sync"
"testing"
"time"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
@@ -20,7 +21,7 @@ var (
)
const (
timeout = 2
timeout = 2 * time.Second
maxDummyPeers = 5
)