fix: better first start setting

This commit is contained in:
James Houlahan
2020-08-05 15:09:08 +02:00
parent f651d39820
commit 34ef9063cb
5 changed files with 3 additions and 7 deletions

View File

@ -70,6 +70,7 @@ func New(
if pref.GetBool(preferences.FirstStartKey) {
b.SendMetric(metrics.New(metrics.Setup, metrics.FirstStart, metrics.Label(config.GetVersion())))
pref.SetBool(preferences.FirstStartKey, false)
}
go b.heartbeat()

View File

@ -32,6 +32,7 @@ type StoreFactoryConfiger interface {
type PreferenceProvider interface {
Get(key string) string
GetBool(key string) bool
SetBool(key string, val bool)
GetInt(key string) int
Set(key string, value string)
}