]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
v2writable: remove outdated FIXME comment and assertions
authorEric Wong <e@80x24.org>
Sat, 18 Jan 2025 01:26:14 +0000 (01:26 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Jan 2025 22:37:02 +0000 (22:37 +0000)
The lei/store bug was resolved and thus the comments and
assertions are no longer necessary.

Followup-to: 99fc3d76 (v2writable: done: force synchronous awaitpid, 2024-11-19)
lib/PublicInbox/V2Writable.pm

index 73c6dcccf849f415642d07dfe7bb5b07494a3331..3ae6c4d08843821c5dca6c415b37cd18a203b603 100644 (file)
@@ -93,9 +93,6 @@ sub init_inbox {
 
 sub idx_shard ($$) {
        my ($self, $num) = @_;
-       # FIXME: lei_store bug somewhere..
-       confess 'BUG: {idx_shards} unset' if !$self->{idx_shards};
-       confess 'BUG: {idx_shards} empty' if !@{$self->{idx_shards}};
        $self->{idx_shards}->[$num % scalar(@{$self->{idx_shards}})];
 }