Skip to content

Commit

Permalink
go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwichmann committed Jun 15, 2019
1 parent 17f3f81 commit c6afba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ func (bridge *HueBridge) connect() error {
}

if !*flagDisableRateLimiting {
bridge.bridge.EnableRateLimiting(timeBetweenHueApiCalls)
log.Debugf("⌘ Enabled rate limiting with %s between API calls", timeBetweenHueApiCalls)
bridge.bridge.EnableRateLimiting(timeBetweenHueAPICalls)
log.Debugf("⌘ Enabled rate limiting with %s between API calls", timeBetweenHueAPICalls)
}

log.Debugf("⌘ Connected to bridge \"%s\" (Model: %s, API version: %s)", configuration.Name, configuration.ModelId, configuration.APIVersion)
Expand Down
2 changes: 1 addition & 1 deletion kelvin.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var lights []*Light
const lightUpdateInterval = 1 * time.Second
const stateUpdateInterval = 1 * time.Minute

const timeBetweenHueApiCalls = 100 * time.Millisecond // see https://developers.meethue.com/develop/application-design-guidance/hue-system-performance/
const timeBetweenHueAPICalls = 100 * time.Millisecond // see https://developers.meethue.com/develop/application-design-guidance/hue-system-performance/
const lightTransistionTime = 400 * time.Millisecond

func main() {
Expand Down

0 comments on commit c6afba4

Please sign in to comment.