From 93071ca4505b79b3a39038002e816b14c65e497c Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 24 Sep 2023 16:23:11 +0300 Subject: feat(tvix/nar-bridge): provide a default for store-addr Defaulting to where `tvix-store daemon` listens to is a sane choice. Change-Id: Ic52fa856c5708e0e1a8d51618f8c9ad1894fd28f Reviewed-on: https://cl.tvl.fyi/c/depot/+/9452 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: Connor Brewster --- tvix/nar-bridge/cmd/nar-bridge/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tvix/nar-bridge') diff --git a/tvix/nar-bridge/cmd/nar-bridge/main.go b/tvix/nar-bridge/cmd/nar-bridge/main.go index a1986740c16a..0f7445ced5e6 100644 --- a/tvix/nar-bridge/cmd/nar-bridge/main.go +++ b/tvix/nar-bridge/cmd/nar-bridge/main.go @@ -21,9 +21,9 @@ import ( // `help:"Expose a tvix-store gRPC Interface as HTTP NAR/NARinfo"` var cli struct { LogLevel string `enum:"trace,debug,info,warn,error,fatal,panic" help:"The log level to log with" default:"info"` - ListenAddr string `name:"listen-addr" help:"The address this service listens on" type:"string" default:"[::]:9000"` //nolint:lll - EnableAccessLog bool `name:"access-log" help:"Enable access logging" type:"bool" default:"true" negatable:""` //nolint:lll - StoreAddr string `name:"store-addr" help:"The address to the tvix-store RPC interface this will connect to"` + ListenAddr string `name:"listen-addr" help:"The address this service listens on" type:"string" default:"[::]:9000"` //nolint:lll + EnableAccessLog bool `name:"access-log" help:"Enable access logging" type:"bool" default:"true" negatable:""` //nolint:lll + StoreAddr string `name:"store-addr" help:"The address to the tvix-store RPC interface this will connect to" default:"localhost:8000"` //nolint:lll } func main() { -- cgit 1.4.1