mirror of
https://github.com/siderolabs/talos.git
synced 2025-09-29 17:51:13 +02:00
`SortBonds` function bothered me since the last time I refactored this part. We always know that it only accepts `network.LinkSpec`s, but we accepted the slice of untyped Resources because this is what `List` method returns. Now we can do better, since `safe.List` now supports `Swap` method. We can utilize `sort.Interface` and pass `safe.List` directly to `SortBonds`. Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>