Kouhei Sutou
null+****@clear*****
Mon Jan 28 12:35:50 JST 2013
Kouhei Sutou 2013-01-28 12:35:50 +0900 (Mon, 28 Jan 2013) New Revision: 28da65f5b63b189040cce95cb2d0d93bd1172ecb https://github.com/groonga/fluent-plugin-kotoumi/commit/28da65f5b63b189040cce95cb2d0d93bd1172ecb Log: Indent Modified files: lib/kotoumi/worker.rb Modified: lib/kotoumi/worker.rb (+20 -20) =================================================================== --- lib/kotoumi/worker.rb 2013-01-28 12:35:34 +0900 (990b925) +++ lib/kotoumi/worker.rb 2013-01-28 12:35:50 +0900 (f54274e) @@ -17,27 +17,27 @@ require 'groonga' - module Kotoumi - class Worker - def initialize(database, queuename) - Groonga::Database.open(database) - @ctx = Groonga::Context.default - @queuename = queuename - end +module Kotoumi + class Worker + def initialize(database, queuename) + Groonga::Database.open(database) + @ctx = Groonga::Context.default + @queuename = queuename + end - def process_message(tag, time, record) - return { - "main-search-result" => { - startTime: "2001-08-02T10:45:23.5+09:00", - elapsedTime: 123.456, - count: 123, - attributes: [ - { name: "name", type: "ShortText", vector: false }, - { name: "age", type: "UInt32", vector: false } - ], - records: [ ["a", 10], ["b", 20] ] - } + def process_message(tag, time, record) + return { + "main-search-result" => { + startTime: "2001-08-02T10:45:23.5+09:00", + elapsedTime: 123.456, + count: 123, + attributes: [ + { name: "name", type: "ShortText", vector: false }, + { name: "age", type: "UInt32", vector: false } + ], + records: [ ["a", 10], ["b", 20] ] } - end + } end end +end -------------- next part -------------- HTML����������������������������...Download