Skip to content

Commit

Permalink
home: imp docs, names
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Oct 19, 2022
1 parent 851c5b8 commit ce7fa53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/home/clients.go
Expand Up @@ -932,10 +932,11 @@ func (clients *clientsContainer) updateFromDHCP(add bool) {
log.Debug("clients: added %d client aliases from dhcp", n)
}

// Close implements the [io.Closer] interface for *clientsContainer.
// Close gracefully closes all the client-specific upstream configurations of
// the persistent clients.
func (clients *clientsContainer) Close() (err error) {
persistent := maps.Values(clients.list)
slices.SortFunc(persistent, func(a, b *Client) bool { return a.Name < b.Name })
slices.SortFunc(persistent, func(a, b *Client) (less bool) { return a.Name < b.Name })

var errs []error

Expand Down

0 comments on commit ce7fa53

Please sign in to comment.