@@ -72,7 +72,6 @@ export function SessionClose (context, data, wire) {
7272 wire . writeResponse ( 'Session' , { id : sessionId } )
7373 } )
7474 . catch ( err => wire . writeError ( err ) )
75- context . removeSession ( sessionId )
7675}
7776
7877export function SessionRun ( context , data , wire ) {
@@ -169,7 +168,6 @@ export function RetryablePositive (context, data, wire) {
169168 const { sessionId } = data
170169 context . getTxsBySessionId ( sessionId ) . forEach ( tx => {
171170 tx . resolve ( )
172- context . removeTx ( tx . id )
173171 } )
174172}
175173
@@ -178,7 +176,6 @@ export function RetryableNegative (context, data, wire) {
178176 const error = context . getError ( errorId ) || new Error ( 'Client error' )
179177 context . getTxsBySessionId ( sessionId ) . forEach ( tx => {
180178 tx . reject ( error )
181- context . removeTx ( tx . id )
182179 } )
183180}
184181
@@ -207,7 +204,6 @@ export function TransactionRollback (context, data, wire) {
207204 tx . rollback ( )
208205 . then ( ( ) => wire . writeResponse ( 'Transaction' , { id } ) )
209206 . catch ( e => wire . writeError ( e ) )
210- context . removeTx ( id )
211207}
212208
213209export function SessionLastBookmarks ( context , data , wire ) {
0 commit comments