| 131 | |
| 132 | |
| 133 | Future<Option<Entry>> LevelDBStorageProcess::get(const string& name) |
| 134 | { |
| 135 | if (error.isSome()) { |
| 136 | return Failure(error.get()); |
| 137 | } |
| 138 | |
| 139 | Try<Option<Entry>> option = read(name); |
| 140 | |
| 141 | if (option.isError()) { |
| 142 | return Failure(option.error()); |
| 143 | } |
| 144 | |
| 145 | return option.get(); |
| 146 | } |
| 147 | |
| 148 | |
| 149 | Future<bool> LevelDBStorageProcess::set( |