Remove commented-out code
Cleaned up old bd-160 export hash tracking code that was disabled. Removed unnecessary test comments. Amp-Thread-ID: https://ampcode.com/threads/T-de38a626-a425-414f-92d8-102bc1519c8b Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -458,35 +458,10 @@ func writeJSONLAtomic(jsonlPath string, issues []*types.Issue) ([]string, error)
|
||||
exportedIDs := make([]string, 0, len(issues))
|
||||
|
||||
for _, issue := range issues {
|
||||
// DISABLED: timestamp-only deduplication causes data loss (bd-160)
|
||||
// skip, err := shouldSkipExport(ctx, issue)
|
||||
// if err != nil {
|
||||
// if os.Getenv("BD_DEBUG") != "" {
|
||||
// fmt.Fprintf(os.Stderr, "Debug: failed to check if %s should skip: %v\n", issue.ID, err)
|
||||
// }
|
||||
// skip = false
|
||||
// }
|
||||
// if skip {
|
||||
// skippedCount++
|
||||
// continue
|
||||
// }
|
||||
|
||||
if err := encoder.Encode(issue); err != nil {
|
||||
return nil, fmt.Errorf("failed to encode issue %s: %w", issue.ID, err)
|
||||
return nil, fmt.Errorf("failed to encode issue %s: %w", issue.ID, err)
|
||||
}
|
||||
|
||||
// DISABLED: export hash tracking (bd-160)
|
||||
// contentHash, err := computeIssueContentHash(issue)
|
||||
// if err != nil {
|
||||
// if os.Getenv("BD_DEBUG") != "" {
|
||||
// fmt.Fprintf(os.Stderr, "Debug: failed to compute hash for %s: %v\n", issue.ID, err)
|
||||
// }
|
||||
// } else if err := store.SetExportHash(ctx, issue.ID, contentHash); err != nil {
|
||||
// if os.Getenv("BD_DEBUG") != "" {
|
||||
// fmt.Fprintf(os.Stderr, "Debug: failed to save export hash for %s: %v\n", issue.ID, err)
|
||||
// }
|
||||
// }
|
||||
|
||||
exportedIDs = append(exportedIDs, issue.ID)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user