Skip to content

Commit

Permalink
Fixed alignment of int64, to be able to access it with atomic.LoadInt…
Browse files Browse the repository at this point in the history
  • Loading branch information
dm4tze authored and kelindar committed Dec 13, 2019
1 parent a5f645c commit 2b188eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/broker/service.go
Expand Up @@ -51,6 +51,7 @@ import (

// Service represents the main structure.
type Service struct {
connections int64 // The number of currently open connections.
context context.Context // The context for the service.
cancel context.CancelFunc // The cancellation function.
License license.License // The licence for this emitter server.
Expand All @@ -67,7 +68,6 @@ type Service struct {
monitor monitor.Storage // The storage provider for stats.
measurer stats.Measurer // The monitoring registry for the service.
metering usage.Metering // The usage storage for metering contracts.
connections int64 // The number of currently open connections.
}

// NewService creates a new service.
Expand Down

0 comments on commit 2b188eb

Please sign in to comment.