You've already forked nyx
mirror of
https://github.com/rls-moe/nyx
synced 2025-08-19 06:18:38 +00:00
Images/Non-images post work, several bug fixes, UI fixes
This commit is contained in:
@@ -27,6 +27,10 @@ type Generator struct {
|
||||
now int64
|
||||
}
|
||||
|
||||
func (g *Generator) IDToUnix(id int) int {
|
||||
return (id >> counterLen) + int(g.StartTime)
|
||||
}
|
||||
|
||||
// NewID generates a new, unique snowflake value
|
||||
//
|
||||
// Up to 8192 snowflakes per second can be requested
|
||||
|
Reference in New Issue
Block a user