Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
Signed-off-by: Ziy1-Tan <[email protected]>
  • Loading branch information
Ziy1-Tan committed Sep 8, 2024
1 parent 08cfdc8 commit f17e8cb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions vmm/common/src/tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

use opentelemetry::sdk::trace::Tracer;
use opentelemetry::sdk::{trace, Resource};
use opentelemetry::sdk::{trace, trace::Tracer, Resource};
use tracing_subscriber::EnvFilter;

pub fn init_otlp_tracer(otlp_service_name: &str) -> anyhow::Result<Tracer> {
Expand Down
3 changes: 1 addition & 2 deletions vmm/sandbox/src/bin/cloud_hypervisor/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ limitations under the License.
use clap::Parser;
use opentelemetry::global;
use tracing::{info, info_span};
use tracing_subscriber::Layer;
use tracing_subscriber::{layer::SubscriberExt, Registry};
use tracing_subscriber::{layer::SubscriberExt, Layer, Registry};
use vmm_common::tracer::{init_logger_filter, init_otlp_tracer};
use vmm_sandboxer::{
args,
Expand Down
3 changes: 1 addition & 2 deletions vmm/sandbox/src/bin/qemu/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ limitations under the License.
use clap::Parser;
use opentelemetry::global;
use tracing::{info, info_span};
use tracing_subscriber::Layer;
use tracing_subscriber::{layer::SubscriberExt, Registry};
use tracing_subscriber::{layer::SubscriberExt, Layer, Registry};
use vmm_common::tracer::{init_logger_filter, init_otlp_tracer};
use vmm_sandboxer::{
args,
Expand Down
3 changes: 1 addition & 2 deletions vmm/sandbox/src/bin/stratovirt/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ limitations under the License.
use clap::Parser;
use opentelemetry::global;
use tracing::{info, info_span};
use tracing_subscriber::{layer::SubscriberExt, Registry};
use tracing_subscriber::Layer;
use tracing_subscriber::{layer::SubscriberExt, Layer, Registry};
use vmm_common::tracer::{init_logger_filter, init_otlp_tracer};
use vmm_sandboxer::{
args,
Expand Down
2 changes: 1 addition & 1 deletion vmm/sandbox/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ use tokio::{
net::UnixStream,
time::timeout,
};
use tracing::{debug, error};
use ttrpc::{
context::with_timeout,
r#async::{Client, TtrpcContext},
};
use tracing::{debug, error};
use vmm_common::api::{
sandbox::{CheckRequest, SetupSandboxRequest, SyncClockPacket},
sandbox_ttrpc::SandboxServiceClient,
Expand Down
1 change: 0 additions & 1 deletion vmm/task/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ use nix::{
};
use tokio::fs::File;
use tracing::{debug, warn};

use vmm_common::{
mount::{mount, unmount},
storage::{Storage, DRIVERBLKTYPE, DRIVEREPHEMERALTYPE, DRIVERSCSITYPE},
Expand Down

0 comments on commit f17e8cb

Please sign in to comment.