diff --git a/.github/workflows/ltb.yml b/.github/workflows/ltb.yml index e282232f..62fa32aa 100644 --- a/.github/workflows/ltb.yml +++ b/.github/workflows/ltb.yml @@ -37,7 +37,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} - timeout-minutes: 5 + timeout-minutes: 10 steps: - name: Checkout code diff --git a/node/internal/actors/internal_nats_server.go b/node/internal/actors/internal_nats_server.go index 96995665..ad0b4554 100644 --- a/node/internal/actors/internal_nats_server.go +++ b/node/internal/actors/internal_nats_server.go @@ -67,14 +67,13 @@ func CreateInternalNatsServer(serverPubKey string, options models.NodeOptions) ( } ns.creds = creds - err = os.Mkdir(filepath.Join(os.TempDir(), "inex-"+serverPubKey), 0700) + ns.storeDir = filepath.Join(options.ResourceDirectory, "inex-"+serverPubKey) + err = os.Mkdir(ns.storeDir, 0700) if err != nil && !os.IsExist(err) { options.Logger.Error("Failed to create store temp directory", slog.Any("error", err)) return nil, err } - ns.storeDir = filepath.Join(os.TempDir(), "inex-"+serverPubKey) - opts, err := ns.generateConfig() if err != nil { options.Logger.Error("Failed to generate NATS server config", slog.Any("error", err))