Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-chavez committed Feb 28, 2024
1 parent 97cd559 commit a6b7db4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ rec {

# Script for running memory tests.
memory =
pkgs.callPackage nix/tools/memory.nix { inherit postgrestProfiled postgrest withTools; };
pkgs.callPackage nix/tools/memory.nix { inherit postgrestProfiled withTools; };

# Utility for updating the pinned version of Nixpkgs.
nixpkgsTools =
Expand Down
2 changes: 1 addition & 1 deletion nix/tools/cabalTools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let
[
"ARG_USE_ENV([PGRST_DB_ANON_ROLE], [postgrest_test_anonymous], [PostgREST anonymous role])"
"ARG_USE_ENV([PGRST_DB_POOL], [1], [PostgREST pool size])"
"ARG_USE_ENV([PGRST_DB_POOL_ACQUISITION_TIMEOUT], [1], [PostgREST pool size])"
"ARG_USE_ENV([PGRST_DB_POOL_ACQUISITION_TIMEOUT], [1], [PostgREST pool timeout])"
"ARG_LEFTOVERS([PostgREST arguments])"
];
workingDir = "/";
Expand Down
4 changes: 1 addition & 3 deletions nix/tools/memory.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
, checkedShellScript
, curl
, postgrestProfiled
, postgrest
, withTools
}:
let
Expand All @@ -30,12 +29,11 @@ let
[
"ARG_USE_ENV([PGRST_DB_ANON_ROLE], [postgrest_test_anonymous], [PostgREST anonymous role])"
"ARG_USE_ENV([PGRST_DB_POOL], [1], [PostgREST pool size])"
"ARG_USE_ENV([PGRST_DB_POOL_ACQUISITION_TIMEOUT], [1], [PostgREST pool size])"
"ARG_USE_ENV([PGRST_DB_POOL_ACQUISITION_TIMEOUT], [1], [PostgREST pool timeout])"
"ARG_LEFTOVERS([PostgREST arguments])"
];
workingDir = "/";
withPath = [ postgrestProfiled ];
withEnv = postgrest.env;
}
''
export PGRST_DB_ANON_ROLE
Expand Down

0 comments on commit a6b7db4

Please sign in to comment.