Parameters cleanup (#864)

* Parameters cleanup

* goimports
This commit is contained in:
Michal Niewrzal 2018-12-14 16:55:45 +01:00 committed by GitHub
parent f9845e7e92
commit db5a3e0d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 10 deletions

View File

@ -21,7 +21,6 @@ var (
// Config is a configuration struct that is everything you need to start an
// agreement receiver responsibility
type Config struct {
DatabaseURL string `help:"the database connection string to use" default:"sqlite3://$CONFDIR/bw.db"`
}
// Run implements the provider.Responsibility interface

View File

@ -23,7 +23,6 @@ import (
type Config struct {
QueueAddress string `help:"data checker queue address" default:"redis://127.0.0.1:6378?db=1&password=abc123"`
Interval time.Duration `help:"how frequently checker should audit segments" default:"30s"`
IrreparabledbURL string `help:"the database connection string to use" default:"sqlite3://$CONFDIR/irreparable.db"`
}
// Initialize a Checker struct

View File

@ -29,10 +29,10 @@ var ClientError = errs.Class("piecestore client error")
var (
defaultBandwidthMsgSize = flag.Int(
"piecestore.rpc.client.default_bandwidth_msg_size", 32*1024,
"piecestore.rpc.client.default-bandwidth-msg-size", 32*1024,
"default bandwidth message size in bytes")
maxBandwidthMsgSize = flag.Int(
"piecestore.rpc.client.max_bandwidth_msg_size", 64*1024,
"piecestore.rpc.client.max-bandwidth-msg-size", 64*1024,
"max bandwidth message size in bytes")
)

View File

@ -21,8 +21,8 @@ import (
)
var (
defaultCheckInterval = flag.Duration("piecestore.agreementsender.check_interval", time.Hour, "number of seconds to sleep between agreement checks")
defaultOverlayAddr = flag.String("piecestore.agreementsender.overlay_addr", "127.0.0.1:7777", "Overlay Address")
defaultCheckInterval = flag.Duration("piecestore.agreementsender.check-interval", time.Hour, "number of seconds to sleep between agreement checks")
defaultOverlayAddr = flag.String("piecestore.agreementsender.overlay-addr", "127.0.0.1:7777", "Overlay Address")
// ASError wraps errors returned from agreementsender package
ASError = errs.Class("agreement sender error")

View File

@ -31,7 +31,7 @@ var (
// Error is the default psdb errs class
Error = errs.Class("psdb")
defaultCheckInterval = flag.Duration("piecestore.ttl.check_interval", time.Hour, "number of seconds to sleep between ttl checks")
defaultCheckInterval = flag.Duration("piecestore.ttl.check-interval", time.Hour, "number of seconds to sleep between ttl checks")
)
// DB is a piece store database

View File

@ -24,7 +24,7 @@ var (
"address to send telemetry to")
metricApp = flag.String("metrics.app", filepath.Base(os.Args[0]),
"application name for telemetry identification")
metricAppSuffix = flag.String("metrics.app_suffix", "-dev",
metricAppSuffix = flag.String("metrics.app-suffix", "-dev",
"application suffix")
)