style: fix gci and golines lint errors in Signal channel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Achton Smidt Winther 2026-02-28 11:52:31 +01:00
parent b3a19f474e
commit b5bd7985c6
No known key found for this signature in database
GPG key ID: B2C1917109213BD1
2 changed files with 14 additions and 8 deletions

View file

@ -42,8 +42,8 @@ type SignalChannel struct {
config config.SignalConfig config config.SignalConfig
httpClient *http.Client httpClient *http.Client
ctx context.Context ctx context.Context
cancel context.CancelFunc cancel context.CancelFunc
wg sync.WaitGroup wg sync.WaitGroup
} }
// Signal SSE event types // Signal SSE event types
@ -611,7 +611,13 @@ func (c *SignalChannel) sendMessage(ctx context.Context, chatID, content string)
return err return err
} }
func (c *SignalChannel) sendReaction(ctx context.Context, chatID, targetAuthor string, targetTimestamp int64, emoji string, remove bool) { func (c *SignalChannel) sendReaction(
ctx context.Context,
chatID, targetAuthor string,
targetTimestamp int64,
emoji string,
remove bool,
) {
params := map[string]any{ params := map[string]any{
"account": c.config.Account, "account": c.config.Account,
"emoji": emoji, "emoji": emoji,

View file

@ -451,12 +451,12 @@ type IRCConfig struct {
} }
type SignalConfig struct { type SignalConfig struct {
Enabled bool `json:"enabled" env:"PICOCLAW_CHANNELS_SIGNAL_ENABLED"` Enabled bool `json:"enabled" env:"PICOCLAW_CHANNELS_SIGNAL_ENABLED"`
Account string `json:"account" env:"PICOCLAW_CHANNELS_SIGNAL_ACCOUNT"` Account string `json:"account" env:"PICOCLAW_CHANNELS_SIGNAL_ACCOUNT"`
SignalCLIURL string `json:"signal_cli_url" env:"PICOCLAW_CHANNELS_SIGNAL_CLI_URL"` SignalCLIURL string `json:"signal_cli_url" env:"PICOCLAW_CHANNELS_SIGNAL_CLI_URL"`
AllowFrom FlexibleStringSlice `json:"allow_from" env:"PICOCLAW_CHANNELS_SIGNAL_ALLOW_FROM"` AllowFrom FlexibleStringSlice `json:"allow_from" env:"PICOCLAW_CHANNELS_SIGNAL_ALLOW_FROM"`
GroupTrigger GroupTriggerConfig `json:"group_trigger,omitempty"` GroupTrigger GroupTriggerConfig `json:"group_trigger,omitempty"`
ReasoningChannelID string `json:"reasoning_channel_id" env:"PICOCLAW_CHANNELS_SIGNAL_REASONING_CHANNEL_ID"` ReasoningChannelID string `json:"reasoning_channel_id" env:"PICOCLAW_CHANNELS_SIGNAL_REASONING_CHANNEL_ID"`
} }
type HeartbeatConfig struct { type HeartbeatConfig struct {