Skip to content

Commit 384db52

Browse files
committed
Set all default values to zero.
1 parent 1704cbc commit 384db52

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

application/src/ext/java/org/opentripplanner/ext/vehiclerentalservicedirectory/VehicleRentalServiceDirectoryFetcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class VehicleRentalServiceDirectoryFetcher {
3939
VehicleRentalServiceDirectoryFetcher.class
4040
);
4141
private static final Duration DEFAULT_FREQUENCY = Duration.ofSeconds(15);
42-
private static final Duration DEFAULT_STARTUP_RETRY_PERIOD = Duration.ofSeconds(0);
42+
private static final Duration DEFAULT_STARTUP_RETRY_PERIOD = Duration.ZERO;
4343
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper()
4444
.registerModule(new JavaTimeModule())
4545
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

application/src/main/java/org/opentripplanner/standalone/config/routerconfig/updaters/VehicleRentalUpdaterConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static VehicleRentalUpdaterParameters create(String configRef, NodeAdapte
3737
OTP startup. Set to `PT0S` to disable retries.
3838
"""
3939
)
40-
.asDuration(Duration.ofSeconds(15)),
40+
.asDuration(Duration.ZERO),
4141
VehicleRentalSourceFactory.create(sourceType, c)
4242
);
4343
}

doc/user/GBFS-Config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Furthermore, support is limited to the following form factors:
3030
| [network](#u_1_network) | `string` | The name of the network to override the one derived from the source data. | *Optional* | | 1.5 |
3131
| overloadingAllowed | `boolean` | Allow leaving vehicles at a station even though there are no free slots. | *Optional* | `false` | 2.2 |
3232
| [sourceType](#u_1_sourceType) | `enum` | What source of vehicle rental updater to use. | *Required* | | 1.5 |
33-
| [startupRetryPeriod](#u_1_startupRetryPeriod) | `duration` | How long to retry loading the vehicle rental data source on startup if it initially fails. | *Optional* | `"PT15S"` | 2.10 |
33+
| [startupRetryPeriod](#u_1_startupRetryPeriod) | `duration` | How long to retry loading the vehicle rental data source on startup if it initially fails. | *Optional* | `"PT0S"` | 2.10 |
3434
| url | `string` | The URL to download the data from. | *Required* | | 1.5 |
3535
| [headers](#u_1_headers) | `map of string` | HTTP headers to add to the request. Any header key, value can be inserted. | *Optional* | | 1.5 |
3636
| [rentalPickupTypes](#u_1_rentalPickupTypes) | `enum set` | This is temporary and will be removed in a future version of OTP. Use this to specify the type of rental data that is allowed to be read from the data source. | *Optional* | | 2.7 |
@@ -87,7 +87,7 @@ What source of vehicle rental updater to use.
8787

8888
<h4 id="u_1_startupRetryPeriod">startupRetryPeriod</h4>
8989

90-
**Since version:** `2.10`**Type:** `duration`**Cardinality:** `Optional`**Default value:** `"PT15S"`
90+
**Since version:** `2.10`**Type:** `duration`**Cardinality:** `Optional`**Default value:** `"PT0S"`
9191
**Path:** /updaters/[1]
9292

9393
How long to retry loading the vehicle rental data source on startup if it initially fails.

0 commit comments

Comments
 (0)