fix(channel-monitor): gofmt struct field alignment

This commit is contained in:
erio committed 2026-04-21 00:40:54 +08:00
1 parent 7570650bb0
commit 2031eaf78f
2 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -273,8 +273,8 @@ func (s *SettingService) GetPublicSettings(ctx context.Context) (*PublicSettings
// channelMonitorIntervalMin / channelMonitorIntervalMax bound the default interval
// (mirrors the monitor-level constraint but lives here so setting_service stays decoupled).
const (
channelMonitorIntervalMin = 15
channelMonitorIntervalMax = 3600
channelMonitorIntervalMin = 15
channelMonitorIntervalMax = 3600
channelMonitorIntervalFallback = 60
)
@@ -305,8 +305,8 @@ func clampChannelMonitorInterval(v int) int {
// ChannelMonitorRuntime is the lightweight view of the channel monitor feature
// consumed by the runner and user-facing handlers.
type ChannelMonitorRuntime struct {
Enabled bool
DefaultIntervalSeconds int
Enabled bool
DefaultIntervalSeconds int
}
// GetChannelMonitorRuntime reads the channel monitor feature flags directly from
+2 -2
View File
@@ -93,8 +93,8 @@ type SystemSettings struct {
OpsMetricsIntervalSeconds int
// Channel Monitor feature
ChannelMonitorEnabled bool `json:"channel_monitor_enabled"`
ChannelMonitorDefaultIntervalSeconds int `json:"channel_monitor_default_interval_seconds"`
ChannelMonitorEnabled bool `json:"channel_monitor_enabled"`
ChannelMonitorDefaultIntervalSeconds int `json:"channel_monitor_default_interval_seconds"`
// Claude Code version check
MinClaudeCodeVersion string