File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
88	github.com/aws/aws-sdk-go-v2/service/dynamodb  v1.16.0 
99	github.com/spf13/cobra  v1.5.0 
1010	github.com/stretchr/testify  v1.8.0 
11- 	go.uber.org/zap  v1.22 .0 
11+ 	go.uber.org/zap  v1.23 .0 
1212)
1313
1414require  (
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
5959go.uber.org/goleak  v1.1.11  h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI =
6060go.uber.org/multierr  v1.6.0  h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4 =
6161go.uber.org/multierr  v1.6.0 /go.mod  h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU =
62- go.uber.org/zap  v1.22 .0  h1:Zcye5DUgBloQ9BaT4qc9BnjOFog5TvBSAGkJ3Nf70c0 =
63- go.uber.org/zap  v1.22 .0 /go.mod  h1:H4siCOZOrAolnUPJEkfaSjDqyP+BDS0DdDWzwcgt3+U =
62+ go.uber.org/zap  v1.23 .0  h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY =
63+ go.uber.org/zap  v1.23 .0 /go.mod  h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY =
6464gopkg.in/check.v1  v0.0.0-20161208181325-20d25e280405  h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
6565gopkg.in/check.v1  v0.0.0-20161208181325-20d25e280405 /go.mod  h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
6666gopkg.in/yaml.v2  v2.2.8 /go.mod  h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
1414// of the command and the command error. If the unlock step fails the lock expires after 24 hours. 
1515func  (c  * Client ) Run (ctx  context.Context , key , command  string ) error  {
1616	// use context.Background here so that unlock runs even if the context is cancelled 
17- 	defer  c .Unlock (context .Background (), key ) //nolint:errcheck 
17+ 	defer  c .Unlock (context .Background (), key ) //nolint:errcheck,contextcheck  
1818
1919	err  :=  c .Lock (ctx , key , time .Hour * 24 ) //nolint:gomnd 
2020	if  err  !=  nil  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments