Skip to content

Commit 274a0e3

Browse files
committed
refactor(ado): remove onEmpty callback from ImplicitSessionSource
1 parent 04050d6 commit 274a0e3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Ydb.Sdk/src/Ado/Session/ImplicitSessionSource.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ namespace Ydb.Sdk.Ado.Session;
33
internal sealed class ImplicitSessionSource : ISessionSource
44
{
55
private readonly IDriver _driver;
6-
private readonly Action? _onBecameEmpty;
76
private int _isDisposed;
87
private int _activeLeaseCount;
98

10-
internal ImplicitSessionSource(IDriver driver, Action? onEmpty = null)
9+
internal ImplicitSessionSource(IDriver driver)
1110
{
1211
_driver = driver;
13-
_onBecameEmpty = onEmpty;
1412
}
1513

1614
public ValueTask<ISession> OpenSession(CancellationToken cancellationToken)
@@ -52,6 +50,5 @@ public async ValueTask DisposeAsync()
5250
}
5351

5452
await _driver.DisposeAsync();
55-
_onBecameEmpty?.Invoke();
5653
}
5754
}

0 commit comments

Comments
 (0)