mirror of
https://github.com/google/nomulus.git
synced 2025-06-03 02:57:33 +02:00
Smear out DNS updates over time when updating DNS for all domains
These updates can generally ran slowly in the background (i.e. they're low priority), and shouldn't clog up the system to the point where they slow down live incoming customer-requested updates. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=250732171
This commit is contained in:
parent
d2f955a488
commit
987a648296
5 changed files with 102 additions and 26 deletions
|
@ -22,6 +22,7 @@ import dagger.Provides;
|
|||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.ProviderException;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.Random;
|
||||
import javax.inject.Named;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
|
@ -48,7 +49,6 @@ public abstract class UtilsModule {
|
|||
abstract AppEngineServiceUtils provideAppEngineServiceUtils(
|
||||
AppEngineServiceUtilsImpl appEngineServiceUtilsImpl);
|
||||
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
public static SecureRandom provideSecureRandom() {
|
||||
|
@ -59,6 +59,10 @@ public abstract class UtilsModule {
|
|||
}
|
||||
}
|
||||
|
||||
@Binds
|
||||
@Singleton
|
||||
abstract Random provideSecureRandomAsRandom(SecureRandom random);
|
||||
|
||||
@Singleton
|
||||
@Provides
|
||||
@Named("base58StringGenerator")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue