Skip to content

Commit

Permalink
*: revert go.mod change
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <[email protected]>
  • Loading branch information
BornChanger committed Nov 15, 2023
1 parent 1b181d2 commit 7430f05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 271 deletions.
6 changes: 3 additions & 3 deletions br/pkg/aws/ebs.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,6 @@ func (e *EC2Session) waitDataFSREnabled(snapShotIDs []*string, targetAZ string)
// Record current time
start := time.Now()

// Create a map to store the strings as keys
pendingSnapshots := make(map[string]struct{})

// get the maximum size of volumes, in GiB
var maxVolumeSize int64 = 0
resp, err := e.ec2.DescribeSnapshots(&ec2.DescribeSnapshotsInput{SnapshotIds: snapShotIDs})
Expand Down Expand Up @@ -359,6 +356,9 @@ func (e *EC2Session) waitDataFSREnabled(snapShotIDs []*string, targetAZ string)
time.Sleep(5 * time.Minute)
}

// Create a map to store the strings as keys
pendingSnapshots := make(map[string]struct{})

// Populate the map with the strings from the array
for _, str := range snapShotIDs {
pendingSnapshots[*str] = struct{}{}
Expand Down
Loading

0 comments on commit 7430f05

Please sign in to comment.