Skip to content

Commit

Permalink
Fix review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
melix authored and fniephaus committed May 23, 2024
1 parent 87badea commit 096ea1f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
*/
public class ExponentialBackoff {
private static final int DEFAULT_MAX_RETRIES = 3;
private static final Duration INITIAL_WAIT_PERIOD = Duration.of(250, ChronoUnit.MILLIS);
private static final Duration DEFAULT_INITIAL_WAIT_PERIOD = Duration.of(250, ChronoUnit.MILLIS);

private final int maxRetries;
private final Duration initialWaitPeriod;

public ExponentialBackoff() {
this(DEFAULT_MAX_RETRIES, INITIAL_WAIT_PERIOD);
this(DEFAULT_MAX_RETRIES, DEFAULT_INITIAL_WAIT_PERIOD);
}

private ExponentialBackoff(int maxRetries, Duration initialWaitPeriod) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.graalvm.buildtools.utils;

import org.junit.jupiter.api.DisplayName;
Expand Down

0 comments on commit 096ea1f

Please sign in to comment.