diff options
author | Alex Legler <alex@a3li.li> | 2015-02-23 00:05:43 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-02-23 00:05:43 +0100 |
commit | 38b11468dafd19db7793525152710ce824f24ccc (patch) | |
tree | 0bdeb268b1a4e01b17a3822bcfa15e640535c442 /lib | |
parent | Save message filename in the index (diff) | |
download | backend-38b11468dafd19db7793525152710ce824f24ccc.tar.gz backend-38b11468dafd19db7793525152710ce824f24ccc.tar.bz2 backend-38b11468dafd19db7793525152710ce824f24ccc.zip |
Give message-id to hash function an appropriate name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/storage.rb | 4 |
1 files 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( |