mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +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) {
|
||||
globalCtx = context.Background()
|
||||
globalCtx = boxbox.Context(globalCtx, include.InboundRegistry(), include.OutboundRegistry(), include.EndpointRegistry())
|
||||
preRun(nil, nil)
|
||||
options, err := parseConfig(globalCtx, configContent)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
||||
@ -145,7 +145,7 @@ namespace QtGrpc {
|
||||
|
||||
QNetworkReply::NetworkError Call(const QString &methodName,
|
||||
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);
|
||||
|
||||
std::string reqStr;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user