File tree 2 files changed +0
-6
lines changed
2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ peer_address = "127.0.0.1:9001"
19
19
# The amount of replicas of the blob stored, available options:
20
20
# - `all': all nodes store all blobs (default). Highest availability, lowest
21
21
# chance of data lost, but highest amount of storage used.
22
- # - `one': a single node stores a blob. Lowest availability, highest chance of
23
- # data lost, but lowest amount of storage used.
24
22
# - `majority': (N/2)+1 nodes store a blob, where N is the total number of nodes
25
23
# in the system. Medium availability, medium chance of data lost, medium
26
24
# amount of storage used.
Original file line number Diff line number Diff line change @@ -103,8 +103,6 @@ pub struct Distributed {
103
103
pub enum Replicas {
104
104
/// All nodes store all blobs (default).
105
105
All ,
106
- /// A single node stores a blob.
107
- One ,
108
106
/// `(N/2)+1` nodes store a blob, where `N` is the total number of nodes in
109
107
/// the system.
110
108
Majority ,
@@ -120,7 +118,6 @@ impl fmt::Display for Replicas {
120
118
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
121
119
match self {
122
120
Replicas :: All => f. write_str ( "all" ) ,
123
- Replicas :: One => f. write_str ( "one" ) ,
124
121
Replicas :: Majority => f. write_str ( "majority" ) ,
125
122
}
126
123
}
@@ -141,7 +138,6 @@ impl FromStr for Replicas {
141
138
fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
142
139
match s {
143
140
"all" => Ok ( Replicas :: All ) ,
144
- "one" => Ok ( Replicas :: One ) ,
145
141
"majority" => Ok ( Replicas :: Majority ) ,
146
142
_ => Err ( ParseReplicasErr ( ( ) ) ) ,
147
143
}
You can’t perform that action at this time.
0 commit comments