From 2031eaf78f5f165af7abbfef2879abe0895139fb Mon Sep 17 00:00:00 2001 From: erio Date: Tue, 21 Apr 2026 00:40:54 +0800 Subject: [PATCH] fix(channel-monitor): gofmt struct field alignment --- backend/internal/service/setting_service.go | 8 ++++---- backend/internal/service/settings_view.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/internal/service/setting_service.go b/backend/internal/service/setting_service.go index c766bf3a51..fb2390149d 100644 --- a/backend/internal/service/setting_service.go +++ b/backend/internal/service/setting_service.go @@ -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 diff --git a/backend/internal/service/settings_view.go b/backend/internal/service/settings_view.go index 5c64b74118..78a6172c10 100644 --- a/backend/internal/service/settings_view.go +++ b/backend/internal/service/settings_view.go @@ -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