Skip to content

Commit

Permalink
feat(database/offline): use milliseconds for revision
Browse files Browse the repository at this point in the history
  • Loading branch information
jinghancc committed Nov 26, 2021
1 parent f5eb420 commit 94c3118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/database/offline/postgres/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (db *DB) Import(ctx context.Context, opt offline.ImportOpt) (int64, error)
revision = *opt.Revision
} else {
// generate revision using current timestamp
revision = time.Now().Unix()
revision = time.Now().UnixMilli()
}
return nil
})
Expand Down

0 comments on commit 94c3118

Please sign in to comment.