mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 11:22:21 +08:00
Plugins: Remove support for deprecated backend plugin protocol version (#34127)
* 33959: Remove support for deprecated backend plugin protocol (v1) * 33959: Remove unused methods * 33959: Remove some additional unused code * 33959: Remove some additional unused code * 33959: Remove datasource plugin wrapper with test * 33959:Remove DefaultProtocolVersion
This commit is contained in:
@ -59,16 +59,12 @@ func (p *grpcPlugin) Start(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if p.client.NegotiatedVersion() > 1 {
|
||||
p.pluginClient, err = newClientV2(p.descriptor, p.logger, rpcClient)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
p.pluginClient, err = newClientV1(p.descriptor, p.logger, rpcClient)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if p.client.NegotiatedVersion() < 2 {
|
||||
return errors.New("plugin protocol version not supported")
|
||||
}
|
||||
p.pluginClient, err = newClientV2(p.descriptor, p.logger, rpcClient)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if p.pluginClient == nil {
|
||||
|
Reference in New Issue
Block a user