mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
use FlagAppPlatformGrpcClientAuth to enable new behavior, instead of legacy
This commit is contained in:
parent
ffdc301718
commit
a45998c8d3
@ -94,7 +94,7 @@ func ProvideUnifiedStorageClient(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newResourceClient(ctx context.Context, conn *grpc.ClientConn, cfg *setting.Cfg, features featuremgmt.FeatureToggles) (resource.ResourceClient, error) {
|
func newResourceClient(ctx context.Context, conn *grpc.ClientConn, cfg *setting.Cfg, features featuremgmt.FeatureToggles) (resource.ResourceClient, error) {
|
||||||
if features.IsEnabled(ctx, featuremgmt.FlagAppPlatformGrpcClientAuth) {
|
if !features.IsEnabled(ctx, featuremgmt.FlagAppPlatformGrpcClientAuth) {
|
||||||
return resource.NewLegacyResourceClient(conn), nil
|
return resource.NewLegacyResourceClient(conn), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user