From 38b11468dafd19db7793525152710ce824f24ccc Mon Sep 17 00:00:00 2001 From: Alex Legler Date: Mon, 23 Feb 2015 00:05:43 +0100 Subject: Give message-id to hash function an appropriate name --- lib/storage.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/storage.rb b/lib/storage.rb index f4e55b6..b4873d8 100644 --- a/lib/storage.rb +++ b/lib/storage.rb @@ -93,7 +93,7 @@ module Ag::Storage content end - def get_parent_message(list, parent_message_id = nil) + def resolve_message_id(list, parent_message_id = nil) return nil if parent_message_id == nil result = $es.search( @@ -195,7 +195,7 @@ module Ag::Storage ) result['hits']['hits'].each do |hit| - msg = get_parent_message(list, hit['_source']['raw_parent']) + msg = resolve_message_id(list, hit['_source']['raw_parent']) unless msg == nil $es.update( -- cgit v1.2.3-65-gdbad