Skip to content

Commit

Permalink
Fix issue with updated method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpgrailsdev committed Jun 14, 2022
1 parent 410151f commit e1ae1f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ public AirbyteMessage saveState(final Map<String, String> offset, final String d

final CdcState cdcState = new CdcState().withState(asJson);
stateManager.getCdcStateManager().setCdcState(cdcState);
final AirbyteStateMessage stateMessage = stateManager.emit();
/*
* Namespace pair is ignored by global state manager, but is needed for satisfy the API contract.
* Therefore, it doesn't matter what we pass here, as it will be ignored.
*/
final AirbyteStateMessage stateMessage = stateManager.emit(null);
return new AirbyteMessage().withType(Type.STATE).withState(stateMessage);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public AirbyteMessage saveState(final Map<String, String> offset, final String d

final CdcState cdcState = new CdcState().withState(asJson);
stateManager.getCdcStateManager().setCdcState(cdcState);
final AirbyteStateMessage stateMessage = stateManager.emit();
/*
* Namespace pair is ignored by global state manager, but is needed for satisfy the API contract.
* Therefore, it doesn't matter what we pass here, as it will be ignored.
*/
final AirbyteStateMessage stateMessage = stateManager.emit(null);
return new AirbyteMessage().withType(Type.STATE).withState(stateMessage);
}

Expand Down

0 comments on commit e1ae1f7

Please sign in to comment.