diff --git a/rustfs/src/app/bucket_usecase.rs b/rustfs/src/app/bucket_usecase.rs index ccbdc3b62..3126fe4a9 100644 --- a/rustfs/src/app/bucket_usecase.rs +++ b/rustfs/src/app/bucket_usecase.rs @@ -1721,7 +1721,7 @@ impl DefaultBucketUsecase { warn!(bucket = %bucket, error = ?err, "site replication bucket replication-config hook failed"); } - Ok(S3Response::new(replication::build_put_bucket_replication_output())) + Ok(S3Response::new(PutBucketReplicationOutput::default())) } #[instrument(level = "debug", skip(self))] diff --git a/rustfs/src/storage/s3_api/replication.rs b/rustfs/src/storage/s3_api/replication.rs index 4bf410f7d..81e1c08da 100644 --- a/rustfs/src/storage/s3_api/replication.rs +++ b/rustfs/src/storage/s3_api/replication.rs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -use s3s::dto::{GetBucketReplicationOutput, PutBucketReplicationOutput, ReplicationConfiguration}; +use s3s::dto::{GetBucketReplicationOutput, ReplicationConfiguration}; pub(crate) fn build_get_bucket_replication_output( replication_configuration: ReplicationConfiguration, @@ -22,13 +22,9 @@ pub(crate) fn build_get_bucket_replication_output( } } -pub(crate) fn build_put_bucket_replication_output() -> PutBucketReplicationOutput { - PutBucketReplicationOutput::default() -} - #[cfg(test)] mod tests { - use super::{build_get_bucket_replication_output, build_put_bucket_replication_output}; + use super::build_get_bucket_replication_output; use s3s::dto::ReplicationConfiguration; #[test] @@ -38,10 +34,4 @@ mod tests { assert_eq!(output.replication_configuration, Some(config)); } - - #[test] - fn test_build_put_bucket_replication_output_is_default() { - let output = build_put_bucket_replication_output(); - assert_eq!(output, Default::default()); - } }