File tree 1 file changed +1
-8
lines changed
lading/src/generator/file_gen
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ pub struct File {
52
52
/// The ordinal number of this File. If the file is foo.log the ordinal
53
53
/// number is 0, if foo.log.1 then 1 etc.
54
54
ordinal : u8 ,
55
-
56
- /// The peer of this file, the next in line in rotation. So, if this file is
57
- /// foo.log the peer will be foo.log.1 and its peer foo.log.2 etc.
58
- peer : Option < Inode > ,
59
55
}
60
56
61
57
impl File {
@@ -179,7 +175,6 @@ pub struct State {
179
175
root_inode : Inode ,
180
176
now : Tick ,
181
177
block_cache : block:: Cache ,
182
- max_rotations : u8 ,
183
178
max_bytes_per_file : u64 ,
184
179
}
185
180
@@ -265,7 +260,6 @@ impl State {
265
260
bytes_per_tick,
266
261
267
262
read_only : false ,
268
- peer : None ,
269
263
ordinal : 0 ,
270
264
} ;
271
265
nodes. insert (
@@ -286,7 +280,6 @@ impl State {
286
280
root_inode,
287
281
now : 0 ,
288
282
block_cache,
289
- max_rotations,
290
283
max_bytes_per_file,
291
284
}
292
285
}
@@ -311,7 +304,7 @@ impl State {
311
304
// nothing yet beyond updating the clock, rotations to come
312
305
assert ! ( now >= self . now) ;
313
306
314
- for ( inode , node) in & mut self . nodes {
307
+ for node in self . nodes . values_mut ( ) {
315
308
match node {
316
309
Node :: File { file, .. } => {
317
310
file. advance_time ( now) ;
You can’t perform that action at this time.
0 commit comments