From ce27f3f99e88b657238941d5226163c96d159ae6 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Fri, 4 Oct 2024 19:15:00 -0400 Subject: [PATCH 1/4] feat: continue to resync if not synced --- src/tasks/sync_stores.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tasks/sync_stores.ts b/src/tasks/sync_stores.ts index 7ffa74c..585eaae 100644 --- a/src/tasks/sync_stores.ts +++ b/src/tasks/sync_stores.ts @@ -46,11 +46,13 @@ const syncStoreFromNetwork = async (storeId: string): Promise => { // If not synced put in the pool to keep trying if ((lastRoot as RootHistoryItem).synced) { missingSyncPool.delete(storeId); + console.log(`Store ${storeId} synchronized successfully.`); } else { missingSyncPool.add(storeId); + console.log(`Store ${storeId} could not synchronize, will try again in a few minutes.`); } - console.log(`Store ${storeId} synchronized successfully.`); + } catch (error: any) { console.warn( `Initial sync attempt failed for ${storeId}: ${error.message}` From 0e3cfdbac02f4eec5929376a6d9c21b49b75d28e Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Fri, 4 Oct 2024 19:15:19 -0400 Subject: [PATCH 2/4] chore(release): 0.0.1-alpha.98 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 082516c..628669d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.98](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.97...v0.0.1-alpha.98) (2024-10-04) + + +### Features + +* continue to resync if not synced ([ce27f3f](https://github.com/DIG-Network/dig-propagation-server/commit/ce27f3f99e88b657238941d5226163c96d159ae6)) + ### [0.0.1-alpha.97](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.96...v0.0.1-alpha.97) (2024-10-04) diff --git a/package-lock.json b/package-lock.json index 997cf94..3570a8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.97", + "version": "0.0.1-alpha.98", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-propagation-server", - "version": "0.0.1-alpha.97", + "version": "0.0.1-alpha.98", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.28", diff --git a/package.json b/package.json index 5f126fa..8e090a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.97", + "version": "0.0.1-alpha.98", "description": "", "type": "commonjs", "main": "./dist/index.js", From c2b74026a85f3dfcdf7bff63142f7084d931052a Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Fri, 4 Oct 2024 19:15:45 -0400 Subject: [PATCH 3/4] feat: continue to resync if not synced --- src/tasks/sync_stores.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tasks/sync_stores.ts b/src/tasks/sync_stores.ts index 585eaae..6426074 100644 --- a/src/tasks/sync_stores.ts +++ b/src/tasks/sync_stores.ts @@ -52,7 +52,6 @@ const syncStoreFromNetwork = async (storeId: string): Promise => { console.log(`Store ${storeId} could not synchronize, will try again in a few minutes.`); } - } catch (error: any) { console.warn( `Initial sync attempt failed for ${storeId}: ${error.message}` From cc7c118c39fb32f06a079536081fe15e68d91d3b Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Fri, 4 Oct 2024 19:16:13 -0400 Subject: [PATCH 4/4] chore(release): 0.0.1-alpha.99 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 628669d..8e4ee43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.1-alpha.99](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.98...v0.0.1-alpha.99) (2024-10-04) + + +### Features + +* continue to resync if not synced ([c2b7402](https://github.com/DIG-Network/dig-propagation-server/commit/c2b74026a85f3dfcdf7bff63142f7084d931052a)) + ### [0.0.1-alpha.98](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.97...v0.0.1-alpha.98) (2024-10-04) diff --git a/package-lock.json b/package-lock.json index 3570a8e..2d9f0e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.98", + "version": "0.0.1-alpha.99", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-propagation-server", - "version": "0.0.1-alpha.98", + "version": "0.0.1-alpha.99", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.28", diff --git a/package.json b/package.json index 8e090a3..e78e0b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dig-propagation-server", - "version": "0.0.1-alpha.98", + "version": "0.0.1-alpha.99", "description": "", "type": "commonjs", "main": "./dist/index.js",