From a3ae8668e639159d5b63dd3fdc00d166c9c12e11 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 21 Aug 2020 22:35:56 +0200 Subject: [PATCH] netns: use map instead of concatMap --- modules/netns-isolation.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/netns-isolation.nix b/modules/netns-isolation.nix index fa36387..e51d89e 100644 --- a/modules/netns-isolation.nix +++ b/modules/netns-isolation.nix @@ -210,9 +210,7 @@ in { ]; rpcallowip = [ "127.0.0.1" - ] ++ lib.lists.concatMap (n: [ - "${netns.${n}.address}" - ]) netns.bitcoind.availableNetns; + ] ++ map (n: "${netns.${n}.address}") netns.bitcoind.availableNetns; cli = pkgs.writeScriptBin "bitcoin-cli" '' netns-exec nb-bitcoind ${config.services.bitcoind.package}/bin/bitcoin-cli -datadir='${config.services.bitcoind.dataDir}' "$@" ''; @@ -253,9 +251,7 @@ in { ]; rpcallowip = [ "127.0.0.1" - ] ++ lib.lists.concatMap (n: [ - "${netns.${n}.address}" - ]) netns.liquidd.availableNetns; + ] ++ map (n: "${netns.${n}.address}") netns.liquidd.availableNetns; mainchainrpchost = netns.bitcoind.address; cli = pkgs.writeScriptBin "elements-cli" '' netns-exec nb-liquidd ${pkgs.nix-bitcoin.elementsd}/bin/elements-cli -datadir='${config.services.liquidd.dataDir}' "$@"