clientv3/client.go
func WithRequireLeader(ctx context.Context) context.Context {
	md := metadata.Pairs(rpctypes.MetadataRequireLeaderKey, rpctypes.MetadataHasLeader)
	return metadata.NewOutgoingContext(ctx, md)
}
func WithRequireLeader(ctx context.Context) context.Context {
	md := metadata.Pairs(rpctypes.MetadataRequireLeaderKey, rpctypes.MetadataHasLeader)
	return metadata.NewOutgoingContext(ctx, md)
}
func WithRequireLeader ( ctx context . Context ) context . Context { md := metadata . Pairs ( rpctypes . MetadataRequireLeaderKey , rpctypes . MetadataHasLeader ) return metadata . NewOutgoingContext ( ctx , md ) }
// WithRequireLeader requires client requests to only succeed
// when the cluster has a leader.
WithRequireLeader requires client requests to only succeed when the cluster has a leader .