Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
Comply defaultTLP and defaultPAP with go-cortex
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaglow committed Dec 4, 2018
1 parent c688fcf commit 0788c23
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ import (
)

const (
// defaultTLP is Green because indicators reaching telegram servers.
// Same for defaultPAP
// TODO: think about making it configurable
defaultTLP = 1
defaultPAP = 1
boltFileName = "bolt.db"
bucket = "users"
tgTokenEnvName = "TGBOT_API_TOKEN"
Expand All @@ -35,6 +30,12 @@ const (
)

var (
// defaultTLP is Green because indicators reach telegram servers.
// Same for defaultPAP.
// TODO: think about making it configurable.
defaultTLP = cortex.TLPGreen
defaultPAP = cortex.PAPGreen

pollTimeout = 20 * time.Second
cortexTimeout = 5 * time.Minute

Expand Down

0 comments on commit 0788c23

Please sign in to comment.