Skip to content

server: Refactor stream observer #95

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

Merged
merged 14 commits into from
Jul 25, 2019
Merged
Prev Previous commit
remove unnecessary line break
Signed-off-by: Sebastian Schepens <[email protected]>
  • Loading branch information
sschepens committed Jul 25, 2019
commit 5f91376589f6e7eb8b7c0c7b63c3149529c2d130
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public void onNext(DiscoveryRequest request) {
DiscoveryResponse latestResponse = latestResponse(requestTypeUrl);
String resourceNonce = latestResponse == null ? null : latestResponse.getNonce();

if (isNullOrEmpty(resourceNonce)
|| resourceNonce.equals(nonce)) {
if (isNullOrEmpty(resourceNonce) || resourceNonce.equals(nonce)) {
if (!request.hasErrorDetail() && latestResponse != null) {
Set<String> ackedResourcesForType = latestResponse.getResourcesList()
.stream()
Expand Down