1、修改bug
This commit is contained in:
parent
ff095c2312
commit
2c72ebec4f
7
mq.go
7
mq.go
|
@ -5,6 +5,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.hpds.cc/Component/network/metadata"
|
"git.hpds.cc/Component/network/metadata"
|
||||||
|
"git.hpds.cc/Component/network/router"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.hpds.cc/Component/network"
|
"git.hpds.cc/Component/network"
|
||||||
|
@ -139,7 +140,11 @@ func (z *messageQueue) ConfigWorkflow(conf string) error {
|
||||||
func (z *messageQueue) configWorkflow(config *config.WorkflowConfig) error {
|
func (z *messageQueue) configWorkflow(config *config.WorkflowConfig) error {
|
||||||
z.wfc = config
|
z.wfc = config
|
||||||
z.server.ConfigMetadataBuilder(metadata.DefaultBuilder())
|
z.server.ConfigMetadataBuilder(metadata.DefaultBuilder())
|
||||||
z.server.ConfigRouter(newRouter(config.Functions))
|
funcList := make([]string, len(config.Functions))
|
||||||
|
for k, v := range config.Functions {
|
||||||
|
funcList[k] = v.Name
|
||||||
|
}
|
||||||
|
z.server.ConfigRouter(router.Default(funcList))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue