In the current golang implementation, there is no track of when the session was last used with in a transaction. This would be helpful to implement session leaks cleanup and other behaviours of session.
_, err := client.ReadWriteTransaction(ctx, func(ctx context.Context, tx *ReadWriteTransaction) error {
// first RPC, session lastUseTime should be updated
_, err := tx.Update(ctx, NewStatement(UpdateBarSetFoo))
if err != nil {
return err
}
// second rpc, session lastUseTime should be updated
_, err = tx.Update(ctx, NewStatement(UpdateBarSetFoo))
if err != nil {
return err
}
return nil
})
In the current golang implementation, there is no track of when the session was last used with in a transaction. This would be helpful to implement session leaks cleanup and other behaviours of session.
lastuseTimein sessionHandle similar to Java client to keep track of when the session was last used in a transaction.