forked from TrueCloudLab/frostfs-node
20 lines
642 B
Go
20 lines
642 B
Go
package main
|
|
|
|
import qosconfig "git.frostfs.info/TrueCloudLab/frostfs-node/cmd/frostfs-node/config/qos"
|
|
|
|
type cfgQoSService struct{}
|
|
|
|
func initQoSService(c *cfg) {
|
|
criticalPubs := qosconfig.CriticalAuthorizedKeys(c.appCfg)
|
|
internalPubs := qosconfig.InternalAuthorizedKeys(c.appCfg)
|
|
rawCriticalPubs := make([][]byte, 0, len(criticalPubs))
|
|
rawInternalPubs := make([][]byte, 0, len(internalPubs))
|
|
for i := range criticalPubs {
|
|
rawCriticalPubs = append(rawCriticalPubs, criticalPubs[i].Bytes())
|
|
}
|
|
for i := range internalPubs {
|
|
rawInternalPubs = append(rawInternalPubs, internalPubs[i].Bytes())
|
|
}
|
|
|
|
c.cfgQoSService = cfgQoSService{}
|
|
}
|