Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Dec 13, 2019
1 parent 0b62f46 commit 9a23179
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/client-s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func (c *s3Client) watchOneBucket(bucket, prefix, suffix string, events []string
errorChan <- probe.NewError(e)
continue
}
fmt.Println("watchOneBucket", record.S3.Bucket.Name, key)
fmt.Println("watchOneBucket", record.S3.Bucket.Name, key, record)
u := *c.targetURL
u.Path = path.Join(string(u.Separator), bucketName, key)
if strings.HasPrefix(record.EventName, "s3:ObjectCreated:") {
Expand Down
7 changes: 5 additions & 2 deletions cmd/mirror-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,11 @@ func (mj *mirrorJob) watchMirror(ctx context.Context, cancelMirror context.Cance
if (event.Type == EventCreate) ||
(event.Type == EventCreatePutRetention) {
mirrorURL := URLs{
SourceAlias: sourceAlias,
SourceContent: &clientContent{URL: *sourceURL, Retention: event.Type == EventCreatePutRetention},
SourceAlias: sourceAlias,
SourceContent: &clientContent{
URL: *sourceURL,
Retention: event.Type == EventCreatePutRetention,
},
TargetAlias: targetAlias,
TargetContent: &clientContent{URL: *targetURL},
encKeyDB: mj.encKeyDB,
Expand Down

0 comments on commit 9a23179

Please sign in to comment.