oc-discovery -> conf
This commit is contained in:
@@ -30,6 +30,14 @@ type Config struct {
|
||||
MaxHBPerMinute int // default 5
|
||||
MaxPublishPerMinute int // default 10
|
||||
MaxGetPerMinute int // default 50
|
||||
|
||||
// LocationGranularity controls how precisely this node discloses its position.
|
||||
// 0 = opt-out (no location published)
|
||||
// 1 = continent (±15°)
|
||||
// 2 = country (±3°) — default
|
||||
// 3 = region (±0.5°)
|
||||
// 4 = city (±0.05°)
|
||||
LocationGranularity int // default 2
|
||||
}
|
||||
|
||||
var instance *Config
|
||||
|
||||
Reference in New Issue
Block a user