Add API for get current transaction ID
This commit is contained in:
parent
7635272fbd
commit
4c517a8147
3 changed files with 20 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue