Skip to content

Commit

Permalink
Update comments for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jul 15, 2024
1 parent 70ec1c9 commit 4b9b56b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ee/katc/indexeddb_leveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ func indexeddbLeveldbData(ctx context.Context, slogger *slog.Logger, sourcePaths

// Query databases
for _, db := range leveldbs {
// Check to make sure `db` adheres to pathConstraintsFromQuery
// Check to make sure `db` adheres to pathConstraintsFromQuery. This is an
// optimization to avoid work -- no point in querying a leveldb file that a filter
// will exclude anyway.
valid, err := checkPathConstraints(db, pathConstraintsFromQuery)
if err != nil {
return nil, fmt.Errorf("checking source path constraints: %w", err)
Expand Down
3 changes: 2 additions & 1 deletion ee/katc/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func sqliteData(ctx context.Context, slogger *slog.Logger, sourcePaths []string,
}

for _, sqliteDb := range sqliteDbs {
// Check to make sure `sqliteDb` adheres to pathConstraintsFromQuery
// Check to make sure `db` adheres to pathConstraintsFromQuery. This is an
// optimization to avoid work, if sqlite filtering is going to exclude it.
valid, err := checkPathConstraints(sqliteDb, pathConstraintsFromQuery)
if err != nil {
return nil, fmt.Errorf("checking source path constraints: %w", err)
Expand Down

0 comments on commit 4b9b56b

Please sign in to comment.