use PublicInbox::Eml;
sub new {
- my ($class, $v2writable, $shard) = @_;
- my $ibx = $v2writable->{-inbox};
+ my ($class, $v2w, $shard) = @_;
+ my $ibx = $v2w->{ibx};
my $self = $class->SUPER::new($ibx, 1, $shard);
# create the DB before forking:
$self->_xdb_acquire;
$self->set_indexlevel;
$self->_xdb_release;
- $self->spawn_worker($v2writable, $shard) if $v2writable->{parallel};
+ $self->spawn_worker($v2w, $shard) if $v2w->{parallel};
$self;
}