Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: John Strunk <[email protected]>
  • Loading branch information
alaypatel07 and JohnStrunk authored Mar 1, 2022
1 parent 02b3cf9 commit 6de3205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transfer/rsync/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func NewClient(ctx context.Context, c ctrlclient.Client,
var namespace string
namespaces := pvcList.Namespaces()
if len(namespaces) > 0 {
namespace = pvcList.Namespaces()[0]
namespace = namespaces[0]
}

for _, ns := range namespaces {
Expand Down Expand Up @@ -268,7 +268,7 @@ func (tc *client) reconcilePod(ctx context.Context, c ctrlclient.Client, ns stri
{
Name: "rsync-communication",
VolumeSource: corev1.VolumeSource{
EmptyDir: &corev1.EmptyDirVolumeSource{Medium: corev1.StorageMediumDefault},
EmptyDir: &corev1.EmptyDirVolumeSource{Medium: corev1.StorageMediumMemory},
},
},
}
Expand Down

0 comments on commit 6de3205

Please sign in to comment.