Created
January 3, 2021 07:07
-
-
Save Sean-Der/d8f871fed60f4043502d37123f8c76a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/main.go b/client/main.go | |
index 95db8ec..bd65ae3 100644 | |
--- a/client/main.go | |
+++ b/client/main.go | |
@@ -57,9 +57,17 @@ func main() { | |
panic("client expects server host+port") | |
} | |
+ i := 0 | |
for range time.NewTicker(5 * time.Second).C { | |
+ i++ | |
for i := 0; i <= 10; i++ { | |
newPeerConnection() | |
} | |
+ | |
+ if i >= 7 { | |
+ break | |
+ } | |
} | |
+ | |
+ time.Sleep(time.Second * 30) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment