mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-26 03:11:21 +08:00
revert timeout in api &&
refactor
This commit is contained in:
parent
60dc6f4528
commit
bd88251f90
@ -51,8 +51,7 @@ func parseConfig(ctx context.Context, configContent []byte) (*option.Options, er
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Create(configContent []byte) (*boxbox.Box, context.CancelFunc, error) {
|
func Create(configContent []byte) (*boxbox.Box, context.CancelFunc, error) {
|
||||||
globalCtx = context.Background()
|
preRun(nil, nil)
|
||||||
globalCtx = boxbox.Context(globalCtx, include.InboundRegistry(), include.OutboundRegistry(), include.EndpointRegistry())
|
|
||||||
options, err := parseConfig(globalCtx, configContent)
|
options, err := parseConfig(globalCtx, configContent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
|||||||
@ -145,7 +145,7 @@ namespace QtGrpc {
|
|||||||
|
|
||||||
QNetworkReply::NetworkError Call(const QString &methodName,
|
QNetworkReply::NetworkError Call(const QString &methodName,
|
||||||
const google::protobuf::Message &req, google::protobuf::Message *rsp,
|
const google::protobuf::Message &req, google::protobuf::Message *rsp,
|
||||||
int timeout_ms = 2000) {
|
int timeout_ms = 0) {
|
||||||
if (!NekoGui::dataStore->core_running) return QNetworkReply::NetworkError(-1919);
|
if (!NekoGui::dataStore->core_running) return QNetworkReply::NetworkError(-1919);
|
||||||
|
|
||||||
std::string reqStr;
|
std::string reqStr;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user