diff --git a/store/slot.go b/store/slot.go index 448002eb..d44dd9c1 100644 --- a/store/slot.go +++ b/store/slot.go @@ -49,6 +49,13 @@ type MigratingSlot struct { IsMigrating bool } +func (migratingSlot *MigratingSlot) String() string { + if migratingSlot == nil { + return "" + } + return migratingSlot.SlotRange.String() +} + func NewSlotRange(start, stop int) (SlotRange, error) { if start > stop { return SlotRange{}, errors.New("start was larger than stop")