From ec74b70abc9264d27ede249f40b56ce3060b095b Mon Sep 17 00:00:00 2001 From: Gaius Date: Thu, 13 Apr 2023 11:02:40 +0800 Subject: [PATCH] feat: add peer and storage package file (#9) Signed-off-by: Gaius --- src/lib.rs | 3 ++- src/{daemon => peer}/mod.rs | 0 src/storage/mod.rs | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) rename src/{daemon => peer}/mod.rs (100%) create mode 100644 src/storage/mod.rs diff --git a/src/lib.rs b/src/lib.rs index 8ec64db3..4e682058 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,4 +15,5 @@ */ pub mod config; -pub mod daemon; +pub mod peer; +pub mod storage; diff --git a/src/daemon/mod.rs b/src/peer/mod.rs similarity index 100% rename from src/daemon/mod.rs rename to src/peer/mod.rs diff --git a/src/storage/mod.rs b/src/storage/mod.rs new file mode 100644 index 00000000..c81dd8ba --- /dev/null +++ b/src/storage/mod.rs @@ -0,0 +1,15 @@ +/* + * Copyright 2023 The Dragonfly Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */