Skip to content

Fix syncing: save file manifests after chunk download#80

Merged
S4tvara merged 3 commits intoS4tvara:mainfrom
anuja12mishra:fix-manifest-saving-issue
Oct 5, 2025
Merged

Fix syncing: save file manifests after chunk download#80
S4tvara merged 3 commits intoS4tvara:mainfrom
anuja12mishra:fix-manifest-saving-issue

Conversation

@anuja12mishra
Copy link
Copy Markdown
Contributor

@anuja12mishra anuja12mishra commented Oct 4, 2025

  • Add Step 5 in SyncWithPeer to persist new file manifests using manifest.StoreFileManifest
  • Ensure manifest YAMLs are written to disk (.sietch/manifests/) for each newly synced file
  • Update result.FileCount to reflect number of manifests saved
  • Retain pointer safety by copying remoteFile before passing to StoreFileManifest

close issue #48

- Add Step 5 in SyncWithPeer to persist new file manifests using manifest.StoreFileManifest
- Ensure manifest YAMLs are written to disk (.sietch/manifests/) for each newly synced file
- Update result.FileCount to reflect number of manifests saved
- Retain pointer safety by copying remoteFile before passing to StoreFileManifest
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 5, 2025

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/p2p/sync.go 0.00% 26 Missing ⚠️
internal/config/manager.go 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@S4tvara S4tvara merged commit 5ba7fde into S4tvara:main Oct 5, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants