about summary refs log tree commit homepage
path: root/lib/PublicInbox/DummyInbox.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/DummyInbox.pm')
-rw-r--r--lib/PublicInbox/DummyInbox.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/PublicInbox/DummyInbox.pm b/lib/PublicInbox/DummyInbox.pm
index b6c48db1..c3f4f5c6 100644
--- a/lib/PublicInbox/DummyInbox.pm
+++ b/lib/PublicInbox/DummyInbox.pm
@@ -9,13 +9,14 @@ use strict;
 
 sub created_at { 0 } # Msgmap::created_at
 sub mm { shift }
-sub max { undef } # Msgmap::max
-sub msg_range { [] } # Msgmap::msg_range
+sub uid_range { [] } # Over::uid_range
+sub subscribe_unlock { undef };
 
 no warnings 'once';
-*uid_range = *query_xover = \&msg_range;
+*max = \&created_at;
+*query_xover = \&uid_range;
 *over = \&mm;
-*subscribe_unlock = *unsubscribe_unlock =
-        *get_art = *description = *base_url = \&max;
+*unsubscribe_unlock =
+        *get_art = *description = *base_url = \&subscribe_unlock;
 
 1;