Remove NewSonyflake

This commit is contained in:
Yoshiyuki Mineo committed 2025-05-02 02:42:07 +09:00
1 parent c847588763
commit 313db86c15
3 files changed
+9 -14

No files matched your search

+3 -3
View File
@@ -21,9 +21,9 @@ func init() {
var st Settings
st.StartTime = time.Now()
sf = NewSonyflake(st)
if sf == nil {
panic("sonyflake not created")
sf, err := New(st)
if err != nil {
panic(err)
}
startTime = toSonyflakeTime(st.StartTime)