Skip to content

Commit

Permalink
Disable onionBalanceInstance option
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Aug 24, 2024
1 parent dbd993b commit 2894790
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
1 change: 0 additions & 1 deletion library/runtime-core/api/runtime-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -3567,7 +3567,6 @@ public final class io/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderS
public final fun maxStreams (I)Lio/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderScopeHS;
public final fun maxStreamsCloseCircuit (Z)Lio/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderScopeHS;
public final fun numIntroductionPoints (I)Lio/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderScopeHS;
public final fun onionBalanceInstance (Z)Lio/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderScopeHS;
public fun port (Lio/matthewnelson/kmp/tor/runtime/core/address/Port;)Lio/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderScopeHS;
public synthetic fun port (Lio/matthewnelson/kmp/tor/runtime/core/address/Port;)Lio/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderScopeHSPort$DSL;
public fun port (Lio/matthewnelson/kmp/tor/runtime/core/address/Port;Lio/matthewnelson/kmp/tor/runtime/core/ThisBlock;)Lio/matthewnelson/kmp/tor/runtime/core/config/builder/BuilderScopeHS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,7 @@ public class BuilderScopeHS: TorSetting.BuilderScope, BuilderScopeHSPort.DSL<Bui
}

// TODO: [TorOption.HiddenServiceExportCircuitID]

/**
* Sets [TorOption.HiddenServiceOnionBalanceInstance], if desired.
* */
@KmpTorDsl
public fun onionBalanceInstance(
enable: Boolean,
): BuilderScopeHS {
_onionBalanceInstance = enable
return this
}
// TODO: [TorOption.HiddenServiceOnionBalanceInstance]

/**
* Sets [TorOption.HiddenServiceMaxStreams], if desired.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class BuilderScopeHSUnitTest {
val items = HiddenServiceDir.asSetting {
applyRequiredForTest()
port(virtual = Port.HTTPS) { target(port = 8443.toPort()) }
onionBalanceInstance(true)
dirGroupReadable(true)
maxStreams(25)
maxStreamsCloseCircuit(true)
Expand All @@ -131,10 +130,9 @@ class BuilderScopeHSUnitTest {
assertIs<HiddenServicePort>(items.elementAt(3).option)
assertIs<HiddenServiceAllowUnknownPorts>(items.elementAt(4).option)
assertIs<HiddenServiceDirGroupReadable>(items.elementAt(5).option)
assertIs<HiddenServiceOnionBalanceInstance>(items.elementAt(6).option)
assertIs<HiddenServiceMaxStreams>(items.elementAt(7).option)
assertIs<HiddenServiceMaxStreamsCloseCircuit>(items.elementAt(8).option)
assertIs<HiddenServiceNumIntroductionPoints>(items.elementAt(9).option)
assertIs<HiddenServiceMaxStreams>(items.elementAt(6).option)
assertIs<HiddenServiceMaxStreamsCloseCircuit>(items.elementAt(7).option)
assertIs<HiddenServiceNumIntroductionPoints>(items.elementAt(8).option)
}

private fun BuilderScopeHS.applyRequiredForTest() {
Expand Down

0 comments on commit 2894790

Please sign in to comment.