Skip to content

Commit 68c7373

Browse files
committed
Fix feature flags and license headers
1 parent 716c43f commit 68c7373

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

quickwit/quickwit-storage/src/object_storage/metrics_wrappers.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2021-Present Datadog, Inc.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
use std::borrow::Cow;
216
use std::io;
317
use std::marker::PhantomData;
@@ -167,8 +181,10 @@ where E: aws_sdk_s3::error::ProvideErrorMetadata
167181
}
168182
}
169183

184+
#[cfg(feature = "azure")]
170185
pub struct AzureMarker;
171186

187+
#[cfg(feature = "azure")]
172188
impl<R> AsStatus<AzureMarker> for Result<R, azure_storage::Error> {
173189
fn as_status(&self) -> Status {
174190
let Err(err) = self else {
@@ -187,6 +203,7 @@ impl<R> AsStatus<AzureMarker> for Result<R, azure_storage::Error> {
187203

188204
// The Azure SDK get_blob request returns Option<Result> because it chunks
189205
// the download into a stream of get requests.
206+
#[cfg(feature = "azure")]
190207
impl<R> AsStatus<AzureMarker> for Option<Result<R, azure_storage::Error>> {
191208
fn as_status(&self) -> Status {
192209
match self {

0 commit comments

Comments
 (0)