Skip to content

Commit ca6ddce

Browse files
committed
Use the current highwater mark for config fetches
1 parent 806c744 commit ca6ddce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prefab_cloud_python/config_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ def load_initial_data(self):
157157

158158
def load_checkpoint_from_api_cdn(self):
159159
try:
160+
hwm = self.config_loader.highwater_mark
160161
response = self.api_client.resilient_request(
161-
"/api/v1/configs/0", auth=("authuser", self.options.api_key), timeout=4, allow_cache=True
162+
f"/api/v1/configs/" + str(hwm), auth=("authuser", self.options.api_key), timeout=4, allow_cache=True
162163
)
163164
if response.ok:
164165
configs = Prefab.Configs.FromString(response.content)

0 commit comments

Comments
 (0)