Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gftp file upload #137

Closed
wants to merge 30 commits into from
Closed

Gftp file upload #137

wants to merge 30 commits into from

Conversation

nieznanysprawiciel
Copy link
Contributor

  • uploading files through gsb
  • no integration with ExeUnit transfers

core/gftp/src/gftp.rs Show resolved Hide resolved
impl FileDesc {
fn new(file: fs::File, hash: String, meta: model::GftpMetadata) -> Arc<Self> {
let file = Mutex::new(file);

Arc::new(FileDesc { hash, file, meta })
}

pub fn open(path: &Path, config: &Config) -> Result<Arc<FileDesc>> {
pub fn open(path: &Path) -> Result<Arc<FileDesc>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A more specific error type would help a lot with integrating gftp with other parts of the application

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean, that I should rather return model::Error than anyhow?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be preferable

core/gftp/src/gftp.rs Show resolved Hide resolved
@mfranciszkiewicz
Copy link
Contributor

Included in #136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants