Skip to content

Commit

Permalink
Fix win build (apart from golem bin) (#1237)
Browse files Browse the repository at this point in the history
* fix win build (apart from golem bin)

* fmt
  • Loading branch information
noise64 authored Jan 13, 2025
1 parent 376c1c7 commit 83b8515
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ use golem_common::model::{
use golem_wasm_ast::analysis::AnalysedExport;
use serde::Serialize;
use std::collections::HashMap;
use std::{
os::unix::fs::MetadataExt,
path::{Path, PathBuf},
};
use std::path::{Path, PathBuf};
use tonic::transport::Channel;
use tracing::{debug, info};
use uuid::Uuid;
Expand Down Expand Up @@ -94,7 +91,7 @@ impl FileSystemComponentService {
let size = tokio::fs::metadata(&target_path)
.await
.map_err(|e| AddComponentError::Other(format!("Failed to read component size: {}", e)))?
.size();
.len();

let metadata = ComponentMetadata {
version: component_version,
Expand Down

0 comments on commit 83b8515

Please sign in to comment.