Add API for get current transaction ID

This commit is contained in:
Eishun Kondoh 2018-01-31 02:31:56 +09:00
parent 7635272fbd
commit 4c517a8147
3 changed files with 20 additions and 3 deletions

View file

@ -1,7 +1,10 @@
defmodule Tres.Controller do
def controller_helpers do
quote do
import Tres.SwitchRegistry, only: [send_message: 2]
import Tres.SwitchRegistry, only: [
send_message: 2,
get_current_xid: 1
]
use Tres.Messages
use Tres.MessageHelper