-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add either.AsyncErr type & helpers #115
Merged
Merged
Conversation
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
bryanchriswhite
added
miner
Changes related to the Miner
off-chain
Off-chain business logic
labels
Oct 30, 2023
bryanchriswhite
force-pushed
the
feat/either-errors
branch
from
October 30, 2023 21:34
c277f3c
to
9868a72
Compare
Olshansk
approved these changes
Oct 30, 2023
Co-authored-by: Daniel Olshansky <[email protected]>
Olshansk
added a commit
that referenced
this pull request
Oct 31, 2023
* feat: add either.AsyncErr type & helpers * fix: comment typo Co-authored-by: Daniel Olshansky <[email protected]> --------- Co-authored-by: Daniel Olshansky <[email protected]>
bryanchriswhite
added a commit
that referenced
this pull request
Nov 7, 2023
…plementation * pokt/main: (28 commits) [Miner] feat: add supplier client (#42) [Off-chain] refactor: keyring errors & helpers (#131) [Miner] feat: add `TxClient` (#94) [CI] Build container images (#107) fix: flaky block client test (#132) [Tooling] add `go_lint` & `go_imports` make targets & CI step (#129) Update README.md [Code Health] Support `godoc` by replacing the `pocket `module name with `github.com/pokt-network/poktroll` (#128) [Miner] feat: add `TxContext` (#118) [Testing] fix: flaky tests in observable & client pkgs (#124) Added first roadmap change [AppGate] Implement UndelegateFromGateway with Extensive Tests (#125) [Miner] feat: add block client (#65) [Supplier] Add `ServiceConfigs` to `SupplierStaking` (#114) [AppGate] Add the MaxDelegatedGateways parameter (#109) [Test] Temporarily skip a flaky test `TestEventsQueryClient_Subscribe_Succeeds` (#121) [AppGate] Implement DelegateToGateway and add Tests (#90) [E2E] Add (Un)Stake Tests (#88) refactor: add `either.Bytes` alias (#117) feat: add either.AsyncErr type & helpers (#115) ...
okdas
pushed a commit
that referenced
this pull request
Nov 14, 2024
* feat: add either.AsyncErr type & helpers * fix: comment typo Co-authored-by: Daniel Olshansky <[email protected]> --------- Co-authored-by: Daniel Olshansky <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Human Summary
Adds the
either.AsyncError
type (i.e.either.Either[chan error]) as well as helper methods, analogous to
either.Either`'s:SyncErr(err error) either.AsyncError
AsyncErr(errCh chan error) AsyncError
AsyncError#SyncOrAsyncError() (error, chan error)
AsyncError#IsSyncError() bool
AsyncError#IsAsyncError() bool
AI Summary
Summary generated by Reviewpad on 30 Oct 23 22:37 UTC
This pull request includes two patches.
The first patch adds the
either.AsyncErr
type and helper functions to the packageeither
. It introduces theSyncErr
function, which creates anAsyncError
from a synchronous error, and theAsyncErr
function, which creates anAsyncError
from an error channel. It also includes functions to decompose theAsyncError
into its components and check if it represents a synchronous or asynchronous error.The second patch fixes a comment typo in the
SyncErr
function in theerrors.go
file of theeither
package.Overall, this pull request enhances the
either
package by adding a new type and helper functions and fixing a comment typo.Issue
Relates to:
TxClient
#94Type of change
Select one or more:
Testing
make go_develop_and_test
Sanity Checklist