-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding IsReady to dialer interface (#1436)
* feat: adding IsReady to BanditDialer and isReady to proxy implementations * feat: only select dialer when ready to dial * fix: adding IsReady to test dialer * fix: loading b64 wasm in background so channel doesn't lock and only wait for download when ready is isn't ready * fix: removing err declaration * fix: renaming channel and waiting dialer to be available before checking at test * feat: if dialer is not ready, try to add to bypass again in 60s * feat: adding log debug and continue when loading dialer in background * fix: adopt suggestions and make IsReady return an error * feat: verifying IsReady error at bandit before checking if it's ready or not * fix: updating bypass function for using and checking context timeout, if it happens it should stop retrying to load the proxy async * feat: adding locker at package lever for avoiding downloading WASM file with data race * feat: add support for water multiplex * fix: typo * fix: checking error at bypass before using ready * fix: canceling context if dialer IsReady returns an error * fix: start proxy if dialer is ready * fix: removing retry atomic bool and replace by select statement * fix: removing if statement for checking if thereadyChain is closed and removing close * fix: removing close calls for finishedToLoad; updated dialer closed message and isReady now returns true based on flag and dialer different than nil * fix: using a sync.Map for handling lockers per WATER transport * fix: making Ready returns a <- chan error * fix: checking if ready chan is nil * fix: adding on success to dialer * fix: deleting bandit package * fix: removing errLoadingWASM var and send it directly to the channel * feat: go mod tidy * fix: replace log by logger * fix: add comment for making explicit IsReady can return a nil value if initialization is not required and verifying at bypass even when loading async * fix: replace sync.Map usage by creating water WASM lock map and a locker for map; also renaming httpClient to waterHTTPClient * fix: set default behavior instead of waiting for dialer to be ready at bandit * fix: make water wasm map * feat: broadcast ready status to all chan listeners * fix: update bandit message * fix: using a buffered channel so we can simplify logic (replacing go routines, context timeouts) * fix: updating types.proto * fix: adding fields to apipib legacy and update water impl connect options * fix: updating test
- Loading branch information
1 parent
3e74446
commit 30d5ac4
Showing
26 changed files
with
531 additions
and
204 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.