Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
Added Index Creation on every link creation
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinosh committed Jan 3, 2024
2 parents 4aec027 + 0f003da commit 00a8393
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::env::current_dir;
use std::fs::{canonicalize, create_dir_all, metadata, File};
use std::future::Future;
use std::io::prelude::*;
use std::io::BufReader;
use std::path::{Path, PathBuf};
Expand All @@ -11,11 +10,8 @@ use arklib::id::ResourceId;
use arklib::index::ResourceIndex;
use arklib::pdf::PDFQuality;
use clap::{Parser, Subcommand};
use core::pin::pin;
use fs_extra::dir::{self, CopyOptions};
use home::home_dir;
use std::task::Context;
use std::task::Poll;
use url::Url;

#[derive(Parser, Debug)]
Expand Down Expand Up @@ -201,8 +197,8 @@ async fn main() {
desc.to_owned(),
);

// let timestamp: u64 = timestamp().as_secs();


let future = link.save(&root, true);

println!("Saving link...");
Expand Down

0 comments on commit 00a8393

Please sign in to comment.