diff options
author | Eric Wong <e@80x24.org> | 2019-05-23 09:36:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-23 17:43:50 +0000 |
commit | 96a27a0a073b61c465240bbbbb05a4c16f67c8d4 (patch) | |
tree | 6ab703c46757f61782e5d135ebc5ef29826fc868 /lib/PublicInbox/V2Writable.pm | |
parent | 646c15c17c323aa80a9a25ca8755720926564ef8 (diff) | |
download | public-inbox-96a27a0a073b61c465240bbbbb05a4c16f67c8d4.tar.gz |
In retrospect, introducing V1Writable was unnecessary and InboxWritable->importer is in a better position to abstract away differences between v1 and v2 writers. So teach InboxWritable to initialize inboxes and get rid of V1Writable.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index afcac4d2..c476cb39 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -94,13 +94,13 @@ sub new { } sub init_inbox { - my ($self, $parallel, $skip) = @_; + my ($self, $parallel, $skip_epoch) = @_; $self->{parallel} = $parallel; $self->idx_init; my $epoch_max = -1; git_dir_latest($self, \$epoch_max); - if (defined $skip && $epoch_max == -1) { - $epoch_max = $skip; + if (defined $skip_epoch && $epoch_max == -1) { + $epoch_max = $skip_epoch; } $self->git_init($epoch_max >= 0 ? $epoch_max : 0); $self->done; |