From 435b99e317fabd8b495a3e8ef648253a546f0d21 Mon Sep 17 00:00:00 2001 From: galargh Date: Mon, 5 Aug 2024 19:38:07 +0200 Subject: [PATCH] chore: go fmt --- subscription_filter_test.go | 16 ++++++++-------- validation_builtin_test.go | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/subscription_filter_test.go b/subscription_filter_test.go index 7ee54a8..0057cdc 100644 --- a/subscription_filter_test.go +++ b/subscription_filter_test.go @@ -19,15 +19,15 @@ func TestBasicSubscriptionFilter(t *testing.T) { topic3 := "test3" yes := true subs := []*pb.RPC_SubOpts{ - &pb.RPC_SubOpts{ + { Topicid: &topic1, Subscribe: &yes, }, - &pb.RPC_SubOpts{ + { Topicid: &topic2, Subscribe: &yes, }, - &pb.RPC_SubOpts{ + { Topicid: &topic3, Subscribe: &yes, }, @@ -108,24 +108,24 @@ func TestSubscriptionFilterDeduplication(t *testing.T) { yes := true no := false subs := []*pb.RPC_SubOpts{ - &pb.RPC_SubOpts{ + { Topicid: &topic1, Subscribe: &yes, }, - &pb.RPC_SubOpts{ + { Topicid: &topic1, Subscribe: &yes, }, - &pb.RPC_SubOpts{ + { Topicid: &topic2, Subscribe: &yes, }, - &pb.RPC_SubOpts{ + { Topicid: &topic2, Subscribe: &no, }, - &pb.RPC_SubOpts{ + { Topicid: &topic3, Subscribe: &yes, }, diff --git a/validation_builtin_test.go b/validation_builtin_test.go index 267cc6b..bca8774 100644 --- a/validation_builtin_test.go +++ b/validation_builtin_test.go @@ -246,7 +246,7 @@ func (r *replayActor) replay(msg *pb.Message) { var peers []peer.ID r.mx.Lock() - for p, _ := range r.out { + for p := range r.out { if rng.Intn(2) > 0 { peers = append(peers, p) }