diff --git a/cluster/topic_partition.go b/cluster/topic_partition.go index 3306ca89..95741e2c 100644 --- a/cluster/topic_partition.go +++ b/cluster/topic_partition.go @@ -12,9 +12,9 @@ type TopicPartition struct { Partition int32 `json:"partition"` // broker ids - Replicas []string `json:"replicas"` - Leader string `json:"leader"` - PreferredLeader string `json:"preferred_leader"` + Replicas []int `json:"replicas"` + Leader int `json:"leader"` + PreferredLeader int `json:"preferred_leader"` CommitLog *commitlog.CommitLog `json:"-"` }