Skip to content

Commit

Permalink
Merge pull request #92 from DIG-Network/release/v0.0.1-alpha.99
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.99
  • Loading branch information
MichaelTaylor3D authored Oct 4, 2024
2 parents 2b47daf + cc7c118 commit 8f7ed34
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/tasks/sync_stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ const syncStoreFromNetwork = async (storeId: string): Promise<void> => {
// 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}`
Expand Down

0 comments on commit 8f7ed34

Please sign in to comment.