diff --git a/CHANGELOG.md b/CHANGELOG.md index 082516c..8e4ee43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ 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) + + +### 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..2d9f0e2 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.99", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dig-propagation-server", - "version": "0.0.1-alpha.97", + "version": "0.0.1-alpha.99", "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.28", diff --git a/package.json b/package.json index 5f126fa..e78e0b7 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.99", "description": "", "type": "commonjs", "main": "./dist/index.js", diff --git a/src/tasks/sync_stores.ts b/src/tasks/sync_stores.ts index 7ffa74c..6426074 100644 --- a/src/tasks/sync_stores.ts +++ b/src/tasks/sync_stores.ts @@ -46,11 +46,12 @@ 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}`