Skip to content

Commit

Permalink
Fix date concurrency bug (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingishb committed Jan 28, 2021
1 parent 750b5de commit 40a09ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ var (

func main() {
app := cli.NewApp()
app.Version = "1.3.2"
app.Version = "1.3.3"

app.Usage = "simple ssm param store interface"
app.Flags = []cli.Flag{
cli.StringFlag{
Expand Down Expand Up @@ -211,6 +212,7 @@ func list(s string, showValue bool) ([]string, error) {
for _, p := range desc.Parameters {
if p.Name != nil {
name := *p.Name
date := p.LastModifiedDate
if showValue {
// set waitgroup and fetch in a goroutine
wg.Add(1)
Expand All @@ -223,7 +225,7 @@ func list(s string, showValue bool) ([]string, error) {
log.Fatal(err)
} else {
params = append(params,
entry{p.LastModifiedDate, name, v},
entry{date, name, v},
)

}
Expand Down

0 comments on commit 40a09ad

Please sign in to comment.