Skip to content

Commit b3c5073

Browse files
committed
style: fix gofmt alignment
1 parent fd985f2 commit b3c5073

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

cmd/predictor/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ type server struct {
4545

4646
func main() {
4747
var (
48-
configFile = flag.String("config", "", "Path to config file (YAML or JSON)")
49-
nodeName = flag.String("node", "", "Node name (default: hostname)")
50-
listenAddr = flag.String("listen", ":9101", "API listen address")
51-
metricsAddr = flag.String("metrics", ":9100", "Prometheus metrics listen address")
52-
interval = flag.Duration("interval", time.Second, "Metrics collection interval")
48+
configFile = flag.String("config", "", "Path to config file (YAML or JSON)")
49+
nodeName = flag.String("node", "", "Node name (default: hostname)")
50+
listenAddr = flag.String("listen", ":9101", "API listen address")
51+
metricsAddr = flag.String("metrics", ":9100", "Prometheus metrics listen address")
52+
interval = flag.Duration("interval", time.Second, "Metrics collection interval")
5353
consensusAddr = flag.String("consensus-addr", "", "Consensus listen address")
54-
peers = flag.String("peers", "", "Comma-separated peer addresses")
55-
logLevel = flag.String("log-level", "info", "Log level (debug, info, warn, error)")
56-
logFormat = flag.String("log-format", "text", "Log format (text, json)")
54+
peers = flag.String("peers", "", "Comma-separated peer addresses")
55+
logLevel = flag.String("log-level", "info", "Log level (debug, info, warn, error)")
56+
logFormat = flag.String("log-format", "text", "Log format (text, json)")
5757

5858
// Prediction thresholds
5959
warnThreshold = flag.Float64("warn-threshold", 0.3, "Warning threshold")

pkg/config/config.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ type ServerConfig struct {
3333

3434
// PredictorConfig holds prediction engine settings.
3535
type PredictorConfig struct {
36-
Interval time.Duration `json:"interval" yaml:"interval"`
37-
WarnThreshold float64 `json:"warn_threshold" yaml:"warn_threshold"`
38-
CriticalThreshold float64 `json:"critical_threshold" yaml:"critical_threshold"`
39-
MinConfidence float64 `json:"min_confidence" yaml:"min_confidence"`
40-
TimeToFailureWindow time.Duration `json:"time_to_failure_window" yaml:"time_to_failure_window"`
41-
RiskWeights RiskWeights `json:"risk_weights" yaml:"risk_weights"`
36+
Interval time.Duration `json:"interval" yaml:"interval"`
37+
WarnThreshold float64 `json:"warn_threshold" yaml:"warn_threshold"`
38+
CriticalThreshold float64 `json:"critical_threshold" yaml:"critical_threshold"`
39+
MinConfidence float64 `json:"min_confidence" yaml:"min_confidence"`
40+
TimeToFailureWindow time.Duration `json:"time_to_failure_window" yaml:"time_to_failure_window"`
41+
RiskWeights RiskWeights `json:"risk_weights" yaml:"risk_weights"`
4242
}
4343

4444
// RiskWeights holds risk factor weights.
@@ -53,9 +53,9 @@ type RiskWeights struct {
5353

5454
// ConsensusConfig holds consensus/partition settings.
5555
type ConsensusConfig struct {
56-
Enabled bool `json:"enabled" yaml:"enabled"`
57-
Addr string `json:"addr" yaml:"addr"`
58-
Peers []string `json:"peers" yaml:"peers"`
56+
Enabled bool `json:"enabled" yaml:"enabled"`
57+
Addr string `json:"addr" yaml:"addr"`
58+
Peers []string `json:"peers" yaml:"peers"`
5959
RateLimit RateLimitConfig `json:"rate_limit" yaml:"rate_limit"`
6060
}
6161

0 commit comments

Comments
 (0)