social / pragma.order / UnsafeOrderProviderPlugin /
UnsafeOrderProviderPlugin #
class UnsafeOrderProviderPlugin(service: Service, contentDataNodeService: ContentDataNodeService, httpClient: TimedHttpClient, random: RandomProxy, logger: Logger) : OrderProviderPlugin, ConfigurablePlugin<UnsafeOrderProviderPlugin.Config>
OrderProviderPlugin requires auth from IdProvider.UNSAFE_VALUE. chanceToErrorPerThousand is checked on every sync. It then checks UnsafeOrderRoutePlugin for any grants pending sync and, if there are any, grants exactly those and returns. Only when there’s nothing pending does it fall back to the chance-based random receive/revoke behavior (chanceToReceivePerThousand/chanceToRevokePerThousand) — both effectively disabled by default (chance 0).
Constructors #
UnsafeOrderProviderPlugin | fun UnsafeOrderProviderPlugin(service: Service, contentDataNodeService: ContentDataNodeService) |
UnsafeOrderProviderPlugin | fun UnsafeOrderProviderPlugin(service: Service, contentDataNodeService: ContentDataNodeService, httpClient: TimedHttpClient, random: RandomProxy, logger: Logger) |