Skip to content

Commit

Permalink
workbench: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Dec 1, 2022
1 parent 921b37b commit b64b4b5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 19 deletions.
6 changes: 1 addition & 5 deletions nix/workbench/backend/nomad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ in
, workbench
##
, cacheDir ? cacheDirDefault
, extraBackendConfig ? {}
## `useCabalRun` not used here like in `supervisor.nix`.
##
, ...
Expand Down Expand Up @@ -37,10 +36,7 @@ let
supervisorConfPath =
import ./supervisor-conf.nix
{ inherit (profileNix) node-services;
inherit
pkgs lib stateDir
basePort
extraBackendConfig;
inherit pkgs lib stateDir basePort;
unixHttpServerPort = "/tmp/supervisor.sock";
};
nomadConf =
Expand Down
6 changes: 1 addition & 5 deletions nix/workbench/backend/supervisor-conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
, node-services
, unixHttpServerPort ? null
, inetHttpServerPort ? null
## Last-moment overrides:
, extraBackendConfig
}:

with lib;
Expand Down Expand Up @@ -71,9 +69,7 @@ let
stopasgroup = true;
killasgroup = true;
};
}
//
extraBackendConfig;
};

##
## nodeSvcSupervisorProgram :: NodeService -> SupervisorConfSection
Expand Down
6 changes: 1 addition & 5 deletions nix/workbench/backend/supervisor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ in
, workbench
##
, cacheDir ? cacheDirDefault
, extraBackendConfig ? {}
, useCabalRun ? false
##
, ...
Expand Down Expand Up @@ -49,10 +48,7 @@ let
supervisorConfPath =
import ./supervisor-conf.nix
{ inherit (profileNix) node-services;
inherit
pkgs lib stateDir
basePort
extraBackendConfig;
inherit pkgs lib stateDir basePort;
inetHttpServerPort = "127.0.0.1:9001";
};
}
Expand Down
4 changes: 0 additions & 4 deletions nix/workbench/tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
stateDir = "./state-cluster-test";
# We want a really short duration for tests
cluster' = workbench-runner-instance {
genesisParams = {
slotLength = 0.1;
decentralisationParam = 0.8;
};
inherit stateDir;
};
# Library bash functions for cluster tests
Expand Down

0 comments on commit b64b4b5

Please sign in to comment.