This commit is contained in:
2021-10-28 18:31:25 +08:00
parent c7f4b8a0f7
commit d52920418a
5 changed files with 15 additions and 49 deletions
-11
View File
@@ -32,11 +32,6 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
#[Inject(Annotation::class)]
public Annotation $annotation;
#[Inject(ContainerInterface::class)]
public ContainerInterface $container;
/**
*
* @throws \Exception
@@ -62,12 +57,6 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
}
}
}
$config = Config::get('rpc.pool', null);
if (!is_null($config)) {
$this->container->mapping(RpcClientInterface::class, JsonRpcPoolTransporter::class);
} else {
$this->container->mapping(RpcClientInterface::class, JsonRpcTransporter::class);
}
}