Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed alignment of int64, to be able to access it with atomic.LoadInt64 #294

Merged
merged 1 commit into from
Dec 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/broker/service.go
Original file line number Diff line number Diff line change
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