parent
f9845e7e92
commit
db5a3e0d0a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
)
|
||||
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user