Skip to content

Commit 6680ada

Browse files
committed
don't use tx in examples. The less it's mentioned the better.
1 parent 1b7b783 commit 6680ada

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/wikipages/data.ShutdownProtocols.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ following code contains a race condition:
9999
// RACE CONDITION
100100
if (model.IsOpen) {
101101
// The following method call depends on the model being in open state.
102-
// The state may change between the IsOpen call and the TxCommit call!
103-
model.TxCommit();
102+
// The state may change between the IsOpen call and the BasicQos call!
103+
model.BasicQos(0, 1, false);
104104
}
105105
}
106106

@@ -113,7 +113,7 @@ an invalid state:
113113
public void BetterMethod(IModel model) {
114114
try {
115115
...
116-
model.TxCommit();
116+
model.BasicQos(0, 1, false);
117117
} catch (OperationInterruptedException ope) {
118118
// Handle one of the many possible reasons why the commit or any
119119
// other operation before it couldn't be handled

0 commit comments

Comments
 (0)