mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-05 23:26:38 +08:00
prettier
This commit is contained in:
+3
-3
@@ -6,7 +6,7 @@ package db
|
||||
const (
|
||||
errRedisHashSetFailed = "failed to set redis hash: %w"
|
||||
errRedisHashDeleteFailed = "failed to delete redis hash field: %w"
|
||||
errUnmarshalDataFailed = "failed to unmarshal data: %w"
|
||||
errMarshalDataFailed = "failed to marshal data: %w"
|
||||
errRedisKeySetFailed = "failed to set redis key: %w"
|
||||
errUnmarshalDataFailed = "failed to unmarshal data: %w"
|
||||
errMarshalDataFailed = "failed to marshal data: %w"
|
||||
errRedisKeySetFailed = "failed to set redis key: %w"
|
||||
)
|
||||
|
||||
@@ -43,4 +43,4 @@ func NextUint64ID() uint64 {
|
||||
log.Printf("[Snowflake] generated negative ID: %d (attempt %d/%d)", id, attempt, maxNegativeIDRetries)
|
||||
}
|
||||
panic(fmt.Sprintf("[Snowflake] generated negative ID after %d attempts", maxNegativeIDRetries))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,4 @@ import (
|
||||
func TestNextUint64ID(t *testing.T) {
|
||||
id := NextUint64ID()
|
||||
assert.NotZero(t, id)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,4 @@ func TestMigrateClickHouseSkipsWhenDisabled(t *testing.T) {
|
||||
})
|
||||
|
||||
MigrateClickHouse()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user