Skip to content

Commit

Permalink
Merge pull request #917 from pastelnetwork/PSL-1238
Browse files Browse the repository at this point in the history
[PSL-1238] initiate migration worker
  • Loading branch information
j-rafique authored Aug 9, 2024
2 parents fe7a60a + 730f4c0 commit af41706
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions p2p/kademlia/store/sqlite/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ func NewStore(ctx context.Context, dataDir string, _ time.Duration, _ time.Durat
// Run WAL checkpoint worker every 5 seconds
go s.startCheckpointWorker(ctx)

if s.isCloudBackupOn() {
_, err = NewMigrationMetaStore(ctx, dataDir, cloud)
if err != nil {
return nil, fmt.Errorf("cannot create meta store: %w", err)
}
}

return s, nil
}

Expand Down

0 comments on commit af41706

Please sign in to comment.