We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make start
panic: sonyflake not created goroutine 1 [running]: github.com/LyricTian/gin-admin/v8/pkg/util/snowflake.init.0() gin-admin/pkg/util/snowflake/snowflake.go:16 +0xe5 exit status 2 make: *** [start] Error 1
Go version
go version go1.16.15 darwin/amd64
The text was updated successfully, but these errors were encountered:
Change this line and print error detail to console to see that happened.
gin-admin/pkg/util/snowflake/snowflake.go
Line 16 in a904050
Sorry, something went wrong.
我这边也遇到过, 大概是不支持部分内网段IP导致的。
func isPrivateIPv4(ip net.IP) bool { return ip != nil && (ip[0] == 10 || ip[0] == 172 && (ip[1] >= 16 && ip[1] < 32) || ip[0] == 192 && ip[1] == 168) }
解决办法,使用自定义获取机器码
getMachineID
No branches or pull requests
make start
Go version
The text was updated successfully, but these errors were encountered: