Skip to content

Commit

Permalink
chore: generalise session pool class for multiplexed session. (#2964)
Browse files Browse the repository at this point in the history
* chore: generalise session pool class for multiplexed session.

* chore: add back previous code.

* chore: address comments.
  • Loading branch information
arpan14 authored Mar 25, 2024
1 parent d0ba290 commit e043de8
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ private <T> T runWithSessionRetry(Function<Session, T> callable) {
try {
return callable.apply(session);
} catch (SessionNotFoundException e) {
session = pool.replaceSession(e, session);
session =
(PooledSessionFuture)
pool.getPooledSessionReplacementHandler().replaceSession(e, session);
}
}
}
Expand Down
Loading

0 comments on commit e043de8

Please sign in to comment.