mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
20 lines
362 B
Go
20 lines
362 B
Go
package commitgraph
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/sourcegraph/sourcegraph/internal/env"
|
|
)
|
|
|
|
type config struct {
|
|
env.BaseConfig
|
|
|
|
Interval time.Duration
|
|
}
|
|
|
|
var ConfigInst = &config{}
|
|
|
|
func (c *config) Load() {
|
|
c.Interval = c.GetInterval("CODEINTEL_UPLOAD_COMMITGRAPH_UPDATER_INTERVAL", "1s", "How frequently to run the upload commitgraph updater routine.")
|
|
}
|