mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-11 05:30:30 +08:00
TUN-3738: Refactor observer to avoid potential of blocking on tunnel notifications
This commit is contained in:
committed by
Arég Harutyunyan
parent
8c9d725eeb
commit
04b1e4f859
@@ -27,13 +27,7 @@ var (
|
||||
Scheme: "https",
|
||||
Host: "connectiontest.argotunnel.com",
|
||||
}
|
||||
testTunnelEventChan = make(chan Event)
|
||||
testObserver = &Observer{
|
||||
&log,
|
||||
m,
|
||||
[]chan Event{testTunnelEventChan},
|
||||
false,
|
||||
}
|
||||
testObserver = NewObserver(&log, false)
|
||||
testLargeResp = make([]byte, largeFileSize)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user