Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed Nov 13, 2024
1 parent dba09c4 commit 0cfc9e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public String cancelJob(
}

/**
* This method allows RefreshQueryHandler to override the job type when calling leaseManager.borrow.
* This method allows RefreshQueryHandler to override the job type when calling
* leaseManager.borrow.
*/
protected void borrow(String datasource) {
leaseManager.borrow(new LeaseRequest(JobType.BATCH, datasource));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public String description() {

@Override
public boolean test(LeaseRequest leaseRequest) {
if (leaseRequest.getJobType() != JobType.REFRESH && leaseRequest.getJobType() != JobType.STREAMING) {
if (leaseRequest.getJobType() != JobType.REFRESH
&& leaseRequest.getJobType() != JobType.STREAMING) {
return true;
}
return activeRefreshJobCount(stateStore, ALL_DATASOURCE).get() < refreshJobLimit();
Expand Down

0 comments on commit 0cfc9e2

Please sign in to comment.