Skip to content

Commit

Permalink
use ints for ids
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Nov 17, 2016
1 parent 6c3066c commit 7b1daac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster/topic_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
}
Expand Down

0 comments on commit 7b1daac

Please sign in to comment.