mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-11 19:18:12 -07:00
Formatting
This commit is contained in:
+3
-3
@@ -51,10 +51,10 @@ type PeerClassStats struct {
|
||||
}
|
||||
|
||||
type PeerStats struct {
|
||||
PeerClassStats `json:"Peers"`
|
||||
Seeds PeerClassStats `json:"Seeds"`
|
||||
PeerClassStats `json:"Peers"` // Stats for all peers.
|
||||
|
||||
Completed uint64 // Number of transitions from leech to seed.
|
||||
Seeds PeerClassStats // Stats for seeds only.
|
||||
Completed uint64 // Number of transitions from leech to seed.
|
||||
}
|
||||
|
||||
type PercentileTimes struct {
|
||||
|
||||
@@ -82,9 +82,9 @@ func recursiveFlatten(val reflect.Value, prefix string, output FlatMap) int {
|
||||
return added
|
||||
}
|
||||
|
||||
func flattenPointer(val reflect.Value) FlatMap {
|
||||
func flattenValue(val reflect.Value) FlatMap {
|
||||
if val.Kind() == reflect.Ptr {
|
||||
return flattenPointer(val.Elem())
|
||||
return flattenValue(val.Elem())
|
||||
}
|
||||
|
||||
if val.Kind() != reflect.Struct {
|
||||
|
||||
Reference in New Issue
Block a user