Skip to content

Commit 602eb0e

Browse files
torcolvinCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 017827f commit 602eb0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

db/indexes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,13 @@ func replaceSyncTokensIndex(statement string) string {
471471
return strings.ReplaceAll(str, syncToken, syncXattr)
472472
}
473473

474-
// Replace sync tokens ($sync) in the provided createIndex statement with the appropriate token.
474+
// Replace sync tokens ($sync and $relativesync) in the provided query statement with the appropriate token.
475475
func replaceSyncTokensQuery(statement string) string {
476476
str := strings.ReplaceAll(statement, syncRelativeToken, syncXattrQuery)
477477
return strings.ReplaceAll(str, syncToken, syncXattrQuery)
478478
}
479479

480-
// Replace index tokens ($idx) in the provided createIndex statement with the appropriate token.
480+
// Replace index token ($idx) in the provided query statement with the appropriate index name.
481481
func replaceIndexTokensQuery(statement string, idx SGIndex, numPartitions uint32) string {
482482
return strings.Replace(statement, indexToken, idx.fullIndexName(numPartitions), -1)
483483
}

0 commit comments

Comments
 (0)