mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2023-10-21 07:33:40 -05:00
Simplify loopback NATS client.
Only use one goroutine per client instead of one per subscription. This ensures that (like with the "real" client), all messages are processed in order across different subscriptions.
This commit is contained in:
+1
-1
@@ -90,7 +90,7 @@ func testNatsClient_Subscribe(t *testing.T, client NatsClient) {
|
||||
}
|
||||
|
||||
// Allow NATS goroutines to process messages.
|
||||
time.Sleep(time.Millisecond)
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
}
|
||||
<-ch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user