mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -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) {
|
||||
if features.IsEnabled(ctx, featuremgmt.FlagAppPlatformGrpcClientAuth) {
|
||||
if !features.IsEnabled(ctx, featuremgmt.FlagAppPlatformGrpcClientAuth) {
|
||||
return resource.NewLegacyResourceClient(conn), nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user