commit: 38b11468dafd19db7793525152710ce824f24ccc Author: Alex Legler <alex <AT> a3li <DOT> li> AuthorDate: Sun Feb 22 23:05:43 2015 +0000 Commit: Alex Legler <a3li <AT> gentoo <DOT> org> CommitDate: Sun Feb 22 23:05:43 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=38b11468
Give message-id to hash function an appropriate name --- lib/storage.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(