0
0
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:
Tim Schuster
2017-03-13 18:45:23 +01:00
parent 4177901714
commit afd9ae71cf
21 changed files with 2206 additions and 23 deletions

View File

@@ -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