diff --git a/core/server/internal/boxmain/cmd_run.go b/core/server/internal/boxmain/cmd_run.go index 5bd6da9..b14f7c9 100644 --- a/core/server/internal/boxmain/cmd_run.go +++ b/core/server/internal/boxmain/cmd_run.go @@ -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 diff --git a/src/api/gRPC.cpp b/src/api/gRPC.cpp index c20e40b..d7bf37a 100644 --- a/src/api/gRPC.cpp +++ b/src/api/gRPC.cpp @@ -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;