package heap import ( "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/pilorama" ) type UnorderedSlice []pilorama.NodeInfo func NewUnorderedSlice() *UnorderedSlice { return &UnorderedSlice{} } func (s *UnorderedSlice) Insert(infos ...pilorama.NodeInfo) { *s = append(*s, infos...) } func (s *UnorderedSlice) IsEmpty() bool { return len(*s) == 0 } func (s *UnorderedSlice) ExtractMin() pilorama.NodeInfo { node := (*s)[0] *s = (*s)[1:] return node }