Skip to content

Commit bd207b4

Browse files
autofix-ci[bot]Flo4604
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 945e37d commit bd207b4

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

cmd/api/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ func action(ctx context.Context, cmd *cli.Command) error {
188188
VaultToken: cmd.String("vault-token"),
189189

190190
// Gossip cluster configuration
191-
GossipEnabled: cmd.Bool("gossip-enabled"),
192-
GossipBindAddr: cmd.String("gossip-bind-addr"),
193-
GossipLANPort: cmd.Int("gossip-lan-port"),
194-
GossipWANPort: cmd.Int("gossip-wan-port"),
195-
GossipLANSeeds: cmd.StringSlice("gossip-lan-seeds"),
191+
GossipEnabled: cmd.Bool("gossip-enabled"),
192+
GossipBindAddr: cmd.String("gossip-bind-addr"),
193+
GossipLANPort: cmd.Int("gossip-lan-port"),
194+
GossipWANPort: cmd.Int("gossip-wan-port"),
195+
GossipLANSeeds: cmd.StringSlice("gossip-lan-seeds"),
196196
GossipWANSeeds: cmd.StringSlice("gossip-wan-seeds"),
197197
GossipSecretKey: cmd.String("gossip-secret-key"),
198198

cmd/frontline/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ func action(ctx context.Context, cmd *cli.Command) error {
135135
VaultToken: cmd.String("vault-token"),
136136

137137
// Gossip cluster configuration
138-
GossipEnabled: cmd.Bool("gossip-enabled"),
139-
GossipBindAddr: cmd.String("gossip-bind-addr"),
140-
GossipLANPort: cmd.Int("gossip-lan-port"),
141-
GossipWANPort: cmd.Int("gossip-wan-port"),
142-
GossipLANSeeds: cmd.StringSlice("gossip-lan-seeds"),
138+
GossipEnabled: cmd.Bool("gossip-enabled"),
139+
GossipBindAddr: cmd.String("gossip-bind-addr"),
140+
GossipLANPort: cmd.Int("gossip-lan-port"),
141+
GossipWANPort: cmd.Int("gossip-wan-port"),
142+
GossipLANSeeds: cmd.StringSlice("gossip-lan-seeds"),
143143
GossipWANSeeds: cmd.StringSlice("gossip-wan-seeds"),
144144
GossipSecretKey: cmd.String("gossip-secret-key"),
145145

pkg/cluster/mux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package cluster
33
import (
44
"testing"
55

6+
"github.com/stretchr/testify/require"
67
cachev1 "github.com/unkeyed/unkey/gen/proto/cache/v1"
78
clusterv1 "github.com/unkeyed/unkey/gen/proto/cluster/v1"
8-
"github.com/stretchr/testify/require"
99
)
1010

1111
func cacheInvalidationMessage(cacheName, cacheKey string) *clusterv1.ClusterMessage {

pkg/cluster/noop.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ type noopCluster struct{}
1212
var _ Cluster = noopCluster{}
1313

1414
func (noopCluster) Broadcast(clusterv1.IsClusterMessage_Payload) error { return nil }
15-
func (noopCluster) Members() []*memberlist.Node { return nil }
16-
func (noopCluster) IsAmbassador() bool { return false }
17-
func (noopCluster) WANAddr() string { return "" }
18-
func (noopCluster) Close() error { return nil }
15+
func (noopCluster) Members() []*memberlist.Node { return nil }
16+
func (noopCluster) IsAmbassador() bool { return false }
17+
func (noopCluster) WANAddr() string { return "" }
18+
func (noopCluster) Close() error { return nil }
1919

2020
// NewNoop returns a no-op cluster that does not participate in gossip.
2121
func NewNoop() Cluster {

0 commit comments

Comments
 (0)