Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Sep 11, 2024
1 parent 5be7693 commit 2f5edb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ksuid/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (n *Node) Generate(ctx context.Context, resource string) (id ID) {

n.sequenceMu.Lock()

//nolint:gosec // this will be fine for a very, very long time
//nolint:gosec // this is a problem before 1970, but we live in the future
timestamp := uint64(time.Now().UTC().Unix())
if (timestamp - n.timestamp) >= 1 {
n.timestamp = timestamp
Expand Down

0 comments on commit 2f5edb3

Please sign in to comment.