Skip to content
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

Removed overrides for block() methods #1034

Closed
wants to merge 1 commit into from
Closed

Removed overrides for block() methods #1034

wants to merge 1 commit into from

Conversation

abuijze
Copy link

@abuijze abuijze commented Jan 15, 2022

Removed overrides for block() methods

Motivation:

Issue #1033 was caused by a faulty implementation of the block method, which in turn was a near-duplicate of the subscribe method. Mono's implementation of the block methods already delegate to subscribe in a safe way, as it seems, so there seems to be no obvious (documented) reason why the block method needs to be overridden.

Furthermore, the block(Duration) method simply delegated to block(), which doesn't honor the semantics of the interface.

Modifications:

Removed the implementation of block() and block(Duration), relying on the implementation in the Mono class.

Result:

Resolves #1033. It also removes near-duplicate code, which is generally a source of issues (such as #1033).

The implementations are a near-copy of their subscribe() counterpart. Instead of duplicating logic which leads to errors like #1033, the implementation now relies on Mono's implementation of block().

Resolves #1033

Signed-off-by: Allard Buijze <[email protected]>
@rstoyanchev
Copy link
Contributor

This was fixed but never closed.

@rstoyanchev rstoyanchev closed this May 6, 2022
@rstoyanchev rstoyanchev added the superseded Issue is superseded by another label May 6, 2022
@rstoyanchev rstoyanchev removed this from the 1.1.2 milestone May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
superseded Issue is superseded by another
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MetaData Push rejects meta data in Payload when using block()
3 participants