From 5f20589ec75f582eaf9ca25741bad50d37447009 Mon Sep 17 00:00:00 2001 From: Michael Schaefermeyer Date: Mon, 1 Aug 2016 13:21:55 +0200 Subject: Add success to run_statement Closes #1 --- lib/boltex/bolt.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/boltex/bolt.ex b/lib/boltex/bolt.ex index 8bbf3e7..984d0b6 100644 --- a/lib/boltex/bolt.ex +++ b/lib/boltex/bolt.ex @@ -150,8 +150,8 @@ defmodule Boltex.Bolt do {[nil], @sig_pull_all} ] - with {:success, %{}} <- receive_data(transport, port), - do: receive_data transport, port + with {:success, %{}} = data <- receive_data(transport, port), + do: [data | receive_data(transport, port) |> List.wrap] end @doc """ -- cgit v1.2.1