[Groonga-commit] droonga/drntest at 03f1be4 [master] Close Droonga client immediately

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Dec 4 12:01:14 JST 2013


Kouhei Sutou	2013-12-04 12:01:14 +0900 (Wed, 04 Dec 2013)

  New Revision: 03f1be4e68ac63aaad3fcbfa8b23d7a2a29fa9d1
  https://github.com/droonga/drntest/commit/03f1be4e68ac63aaad3fcbfa8b23d7a2a29fa9d1

  Message:
    Close Droonga client immediately

  Modified files:
    lib/drntest/executor.rb

  Modified: lib/drntest/executor.rb (+3 -2)
===================================================================
--- lib/drntest/executor.rb    2013-12-03 18:55:22 +0900 (0784342)
+++ lib/drntest/executor.rb    2013-12-04 12:01:14 +0900 (57ae2c2)
@@ -30,8 +30,9 @@ module Drntest
 
     private
     def execute_commands
-      client = Droonga::Client.new(tag: owner.tag, port: owner.port)
-      client.connection.send(request, :response => :one)
+      Droonga::Client.open(tag: owner.tag, port: owner.port) do |client|
+        client.connection.send(request, :response => :one)
+      end
     end
 
     def normalize_result(result)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index