revert timeout in api &&

refactor
This commit is contained in:
Nova 2025-03-01 04:27:00 +03:30
parent 60dc6f4528
commit bd88251f90
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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;