about summary refs log tree commit homepage
path: root/lib/PublicInbox/Over.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-03-20 08:18:15 +0000
committerEric Wong <e@yhbt.net>2020-03-22 09:00:23 +0000
commit87678710135973f72722258e171fc00f85c86ec8 (patch)
tree15145a7f37c579b8fa9f5215e0e61b78385dace8 /lib/PublicInbox/Over.pm
parente5dbf0680cfbfa81bad38457c0430fd260dda682 (diff)
downloadpublic-inbox-87678710135973f72722258e171fc00f85c86ec8.tar.gz
rename PublicInbox::SearchMsg => PublicInbox::Smsg
Since the introduction of over.sqlite3, SearchMsg is not tied to
our search functionality in any way, so stop confusing ourselves
and future hackers by just calling it "PublicInbox::Smsg".

Add a missing "use" in ExtMsg while we're at it.
Diffstat (limited to 'lib/PublicInbox/Over.pm')
-rw-r--r--lib/PublicInbox/Over.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/Over.pm b/lib/PublicInbox/Over.pm
index b9b02f96..286fb7f6 100644
--- a/lib/PublicInbox/Over.pm
+++ b/lib/PublicInbox/Over.pm
@@ -9,7 +9,7 @@ use strict;
 use warnings;
 use DBI;
 use DBD::SQLite;
-use PublicInbox::SearchMsg;
+use PublicInbox::Smsg;
 use Compress::Zlib qw(uncompress);
 use constant DEFAULT_LIMIT => 1000;
 
@@ -41,14 +41,14 @@ sub connect { $_[0]->{dbh} ||= $_[0]->dbh_new }
 
 sub load_from_row ($;$) {
         my ($smsg, $cull) = @_;
-        bless $smsg, 'PublicInbox::SearchMsg';
+        bless $smsg, 'PublicInbox::Smsg';
         if (defined(my $data = delete $smsg->{ddd})) {
                 $data = uncompress($data);
                 utf8::decode($data);
-                PublicInbox::SearchMsg::load_from_data($smsg, $data);
+                PublicInbox::Smsg::load_from_data($smsg, $data);
 
                 # saves over 600K for 1000+ message threads
-                PublicInbox::SearchMsg::psgi_cull($smsg) if $cull;
+                PublicInbox::Smsg::psgi_cull($smsg) if $cull;
         }
         $smsg
 }