Skip to content

Commit 04c858b

Browse files
committed
Fix code style
- Fix typo - Golint simplify - Fix comment formatting
1 parent 9af1066 commit 04c858b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/sync/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type testInput struct {
2323

2424
func getValidConfig() *config {
2525
upstreams := []upstream{
26-
upstream{
26+
{
2727
Name: "backend1",
2828
AutoscalingGroup: "backend-group",
2929
Port: 80,

cmd/sync/nginx.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type SSL struct {
9090
SessionReuses uint64 `json:"session_reuses"`
9191
}
9292

93-
// ServerZones is map of server zone stats by zone name
93+
// ServerZones is map of server zone stats by zone name.
9494
type ServerZones map[string]ServerZone
9595

9696
// ServerZone represents server zone related stats.
@@ -103,7 +103,7 @@ type ServerZone struct {
103103
Sent uint64
104104
}
105105

106-
// Responses represents HTTP reponse related stats.
106+
// Responses represents HTTP response related stats.
107107
type Responses struct {
108108
Responses1xx uint64 `json:"1xx"`
109109
Responses2xx uint64 `json:"2xx"`

0 commit comments

Comments
 (0)