Skip to content

Commit f90c600

Browse files
auricomclaude
andcommitted
fix(ci): promote go-hclog to direct dep; fix gci alignment in syncer_test
go mod tidy promotes github.com/hashicorp/go-hclog from indirect to direct now that pkg/raft/node.go imports it explicitly. gci auto-formatted stubRaftNode method stubs in syncer_test.go. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bf6bb50 commit f90c600

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

block/internal/syncing/syncer_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ type stubRaftNode struct {
4242
callbacks []chan<- raft.RaftApplyMsg
4343
}
4444

45-
func (s *stubRaftNode) IsLeader() bool { return false }
46-
func (s *stubRaftNode) HasQuorum() bool { return false }
47-
func (s *stubRaftNode) GetState() *raft.RaftBlockState { return nil }
48-
func (s *stubRaftNode) Broadcast(context.Context, *raft.RaftBlockState) error { return nil }
45+
func (s *stubRaftNode) IsLeader() bool { return false }
46+
func (s *stubRaftNode) HasQuorum() bool { return false }
47+
func (s *stubRaftNode) GetState() *raft.RaftBlockState { return nil }
48+
func (s *stubRaftNode) Broadcast(context.Context, *raft.RaftBlockState) error { return nil }
4949
func (s *stubRaftNode) SetApplyCallback(ch chan<- raft.RaftApplyMsg) {
5050
s.mu.Lock()
5151
defer s.mu.Unlock()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ require (
2222
github.com/go-kit/kit v0.13.0
2323
github.com/go-viper/mapstructure/v2 v2.5.0
2424
github.com/goccy/go-yaml v1.19.2
25+
github.com/hashicorp/go-hclog v1.6.3
2526
github.com/hashicorp/golang-lru/v2 v2.0.7
2627
github.com/hashicorp/raft v1.7.3
2728
github.com/hashicorp/raft-boltdb v0.0.0-20251103221153-05f9dd7a5148
@@ -102,7 +103,6 @@ require (
102103
github.com/googleapis/gax-go/v2 v2.20.0 // indirect
103104
github.com/gorilla/websocket v1.5.3 // indirect
104105
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect
105-
github.com/hashicorp/go-hclog v1.6.3 // indirect
106106
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
107107
github.com/hashicorp/go-metrics v0.5.4 // indirect
108108
github.com/hashicorp/go-msgpack v0.5.5 // indirect

0 commit comments

Comments
 (0)