HandshakeConfig MagicCookieKey key定死
This commit is contained in:
parent
622a368a25
commit
ff0ff17055
|
@ -11,7 +11,6 @@ func Order(ctx context.Context, tag string, request *proto.OrderRequest) (*proto
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
//request.Config = srv.Config
|
|
||||||
return srv.Impl.Order(ctx, request)
|
return srv.Impl.Order(ctx, request)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import (
|
||||||
type PluginInfo struct {
|
type PluginInfo struct {
|
||||||
Tag string
|
Tag string
|
||||||
Impl shared.PluginService
|
Impl shared.PluginService
|
||||||
//Config json.RawMessage
|
|
||||||
cleanup func()
|
cleanup func()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +34,6 @@ func (m *pluginManage) add(c *Config) error {
|
||||||
m.plugins[c.Tag] = &PluginInfo{
|
m.plugins[c.Tag] = &PluginInfo{
|
||||||
Tag: c.Tag,
|
Tag: c.Tag,
|
||||||
Impl: impl,
|
Impl: impl,
|
||||||
//Config: c.Config,
|
|
||||||
cleanup: cleanup,
|
cleanup: cleanup,
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -21,10 +21,10 @@ func PluginSet(opts ...*Plugin) plugin.PluginSet {
|
||||||
return plugins
|
return plugins
|
||||||
}
|
}
|
||||||
|
|
||||||
func HandshakeConfig(version uint, key, value string) plugin.HandshakeConfig {
|
func HandshakeConfig(version uint, value string) plugin.HandshakeConfig {
|
||||||
return plugin.HandshakeConfig{
|
return plugin.HandshakeConfig{
|
||||||
ProtocolVersion: version,
|
ProtocolVersion: version,
|
||||||
MagicCookieKey: key,
|
MagicCookieKey: "BASIC_PLUGIN",
|
||||||
MagicCookieValue: value,
|
MagicCookieValue: value,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue