refactor: rename to startProtocolRegistry
This commit is contained in:
parent
82fe380b02
commit
3a44305c44
|
@ -4,7 +4,7 @@ import "git.lumeweb.com/LumeWeb/portal/interfaces"
|
|||
|
||||
type startFunc func(p interfaces.Portal) error
|
||||
|
||||
func initProtocolRegistry(p interfaces.Portal) error {
|
||||
func startProtocolRegistry(p interfaces.Portal) error {
|
||||
for _, _func := range p.ProtocolRegistry().All() {
|
||||
err := _func.Start()
|
||||
if err != nil {
|
||||
|
@ -21,7 +21,7 @@ func startDatabase(p interfaces.Portal) error {
|
|||
|
||||
func getStartList() []startFunc {
|
||||
return []startFunc{
|
||||
initProtocolRegistry,
|
||||
startProtocolRegistry,
|
||||
startDatabase,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue