public static LoadBalancer.Subchannel createSubChannel(final LoadBalancer.Helper helper,
                                                           final EquivalentAddressGroup addressGroup,
                                                           final Attributes attributes) {
        final Attributes newAttributes = attributes.toBuilder()
                .set(STATE_INFO_KEY, new Ref<>(ConnectivityStateInfo.forNonError(ConnectivityState.IDLE)))
                .build();
        return helper.createSubchannel(LoadBalancer.CreateSubchannelArgs
                .newBuilder()
                .setAddresses(addressGroup)
                .setAttributes(newAttributes)
                .build()
        );
    }
CreateSubChannel.

@param helper       helper
@param addressGroup addressGroup
@param attributes   attributes
@return LoadBalancer.Subchannel  subchannel
shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-rpc/shenyu-plugin-grpc/src/main/java/org/apache/shenyu/plugin/grpc/loadbalance/SubChannels.java