|
|
@ -38,9 +38,6 @@ var TransProcessedTestChan chan string = nil |
|
|
|
|
|
|
|
|
// WaitTransProcessed only for test usage. wait for transaction processed once
|
|
|
// WaitTransProcessed only for test usage. wait for transaction processed once
|
|
|
func WaitTransProcessed(gid string) { |
|
|
func WaitTransProcessed(gid string) { |
|
|
if TransProcessedTestChan == nil { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
logrus.Printf("waiting for gid %s", gid) |
|
|
logrus.Printf("waiting for gid %s", gid) |
|
|
id := <-TransProcessedTestChan |
|
|
id := <-TransProcessedTestChan |
|
|
for id != gid { |
|
|
for id != gid { |
|
|
|