Skip to content

Commit 023a743

Browse files
committed
look a bit behind for updated contacts so we don't run into races
1 parent 4277e59 commit 023a743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indexer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func IndexContacts(db *sql.DB, elasticURL string, index string, lastModified tim
197197
batchCount := 0
198198
batchModified := lastModified
199199

200-
rows, err := db.Query(contactQuery, lastModified)
200+
rows, err := db.Query(contactQuery, lastModified.Add(time.Second*-5))
201201

202202
// no more rows? return
203203
if err == sql.ErrNoRows {

0 commit comments

Comments
 (0)