Skip to content

Commit

Permalink
Merge pull request #686 from lavanet/CNS-fix-default-api-interfaces
Browse files Browse the repository at this point in the history
sort api interfaces
  • Loading branch information
Yaroms authored Aug 6, 2023
2 parents 92da6e8 + bd1057d commit 6bdc35f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/epochstorage/types/supported_services.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package types

import "fmt"
import (
"fmt"
"sort"
)

type EndpointService struct {
ApiInterface string
Expand Down Expand Up @@ -64,6 +67,7 @@ func (endpoint *Endpoint) SetDefaultApiInterfaces(requiredServices map[EndpointS
}
endpoint.ApiInterfaces = append(endpoint.ApiInterfaces, endpointService.ApiInterface)
}
sort.Strings(endpoint.ApiInterfaces)
}

// users are allowed to send apiInterfaces inside the addons list, this code supports that
Expand Down

0 comments on commit 6bdc35f

Please sign in to comment.