Skip to content

Commit

Permalink
temp disable depguard
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Oct 10, 2023
1 parent 6ff3042 commit 2a108ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ linters:
disable-all: true
enable:
- bodyclose
- depguard
# - depguard
- dogsled
- gochecknoinits
- goconst
Expand Down
5 changes: 2 additions & 3 deletions cmd/workload/sendlarge.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func (o *sendLargeWorkloadsOptions) run(ctx context.Context) error {

wg := sync.WaitGroup{}
wg.Add(1)
defer wg.Wait()
go func() {
defer wg.Done()
for {
Expand Down Expand Up @@ -60,9 +61,7 @@ func (o *sendLargeWorkloadsOptions) run(ctx context.Context) error {
return err
}
}
stream.CloseSend()
wg.Wait()
return nil
return stream.CloseSend()
}

func (o *sendLargeWorkloadsOptions) toSendLargeFileChunks() []*corepb.FileOptions {
Expand Down

0 comments on commit 2a108ad

Please sign in to comment.