From 2f5edb302d93f81802d018a2747727e703a898ab Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:58:25 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/4d5234bc76d96651ad8cb62a41ef4941b64cf962 --- lib/ksuid/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ksuid/node.go b/lib/ksuid/node.go index 923e2e6..cb91d45 100644 --- a/lib/ksuid/node.go +++ b/lib/ksuid/node.go @@ -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