Currently the String type is used as a key (e.g. HashMap<String, Partition>) to reference partitions. Every partition already has a numeric ID assigned to it, which we might as well use.
This PR replaces the String keys with numeric PartitionIds. The PartitionId type is already provided by the a653rs crate.
Currently the String type is used as a key (e.g.
HashMap<String, Partition>
) to reference partitions. Every partition already has a numeric ID assigned to it, which we might as well use.This PR replaces the
String
keys with numericPartitionId
s. ThePartitionId
type is already provided by thea653rs
crate.