mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Lower default granularity
This commit is contained in:
parent
ff81344aa8
commit
a6ae97ecb1
2 changed files with 2 additions and 2 deletions
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -98,7 +98,7 @@
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/jedisct1/go-clocksmith"
|
name = "github.com/jedisct1/go-clocksmith"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "37ddc416ad55843f387500810537f09f0c8d2cf0"
|
revision = "c35da9bed550558a4797c74e34957071214342e7"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
2
vendor/github.com/jedisct1/go-clocksmith/clocksmith.go
generated
vendored
2
vendor/github.com/jedisct1/go-clocksmith/clocksmith.go
generated
vendored
|
@ -4,7 +4,7 @@ import "time"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DefaultGranularity - Maximum duration of actual time.Sleep() calls
|
// DefaultGranularity - Maximum duration of actual time.Sleep() calls
|
||||||
DefaultGranularity = 10 * time.Second
|
DefaultGranularity = 5 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
// SleepWithGranularity - sleeps for the given amount of time, with the given granularity;
|
// SleepWithGranularity - sleeps for the given amount of time, with the given granularity;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue