diff --git a/util/ids/snowflake.go b/util/ids/snowflake.go index c52546671718a49e9ddcf168e75f926bbc1827c9..73f531acfb8a33a671e4b7f8dfde588ceef0c5e0 100644 --- a/util/ids/snowflake.go +++ b/util/ids/snowflake.go @@ -1,20 +1,15 @@ package ids import ( - "errors" "os" "strconv" "github.com/bwmarrin/snowflake" - "github.com/turt2live/matrix-media-repo/common/config" ) func GetMachineId() int64 { if val, ok := os.LookupEnv("MACHINE_ID"); ok { if i, err := strconv.ParseInt(val, 10, 64); err == nil { - if i == 1023 && !config.Runtime.IsImportProcess { - panic(errors.New("machine ID 1023 is reserved for use by import process")) - } return i } }