diff options
| author | Kyren223 <kyren223@proton.me> | 2025-08-08 23:25:17 +0300 |
|---|---|---|
| committer | Kyren223 <kyren223@proton.me> | 2025-08-08 23:25:17 +0300 |
| commit | 375cd7a0f5fcf6c92ca02d24b8c61179decd4f41 (patch) | |
| tree | c7ae0b2b0cb5871d4372d84228890a9cd888f4d3 | |
| parent | 3842aa28cf74e90dd0998b2a4343f9ad83766b60 (diff) | |
Add more readme info
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | pkg/snowflake/snowflake.go | 4 |
2 files changed, 6 insertions, 4 deletions
@@ -15,6 +15,8 @@ The Discord alternative for Terminal nerds. <img src="./assets/eko-screenshot.png" width="100%" alt="Eko Showcase"> </p> +Don't forget to ⭐ the repo! + ## Features - 🟢 Vim-style navigation and editing @@ -62,7 +64,7 @@ They are inspired by vim and should feel intuitive. To ask questions, suggest features, or chat with the community, it's recommended to join the official server. -To do so press `a` while focused on the network list and paste `<invite code>` into it. +To do so press `a` while focused on the network list and paste `7660950781952` into it. And that's it! @@ -119,7 +121,7 @@ Optionally move the executable to somewhere in your path so you can access it fr I’d love to hear your thoughts on this project. Reach me via: -- Eko: `<My ID>` (focus the Signal pane, press `a` and paste) +- Eko: `2102554263552` (focus the Signal pane, press `a` and paste) - Discord: Kyren223 ## Licenses diff --git a/pkg/snowflake/snowflake.go b/pkg/snowflake/snowflake.go index 890f278..d369134 100644 --- a/pkg/snowflake/snowflake.go +++ b/pkg/snowflake/snowflake.go @@ -75,9 +75,9 @@ func NewNode(node int64) *Node { assert.Assert(nodeBits+stepBits == 22, "node and step bits must add up to 22") assert.Assert(0 <= node && node <= NodeMax, "node must be within 0 and NodeMax", "node", node) - // Credit to https://github.com/bwmarrin/snowflake + // NOTE(kyren): Credit to https://github.com/bwmarrin/snowflake currentTime := time.Now() - // add time.Duration to curTime to make sure we use the monotonic clock if available + // add time.Duration to currentTime to make sure we use the monotonic clock if available epoch := currentTime.Add(time.Unix(Epoch/1000, (Epoch%1000)*1000000).Sub(currentTime)) return &Node{ |
