Skip to content

Commit c52bfaa

Browse files
committed
chore: gofmt
1 parent 690f51e commit c52bfaa

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

internal/apirouter/log_handlers.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ func parseIncludeOptions(c *gin.Context) IncludeOptions {
8888

8989
// APIAttempt is the API response for an attempt
9090
type APIAttempt struct {
91-
ID string `json:"id"`
92-
Status string `json:"status"`
93-
DeliveredAt time.Time `json:"delivered_at"`
94-
Code string `json:"code,omitempty"`
95-
ResponseData map[string]interface{} `json:"response_data,omitempty"`
96-
AttemptNumber int `json:"attempt_number"`
97-
Manual bool `json:"manual"`
91+
ID string `json:"id"`
92+
Status string `json:"status"`
93+
DeliveredAt time.Time `json:"delivered_at"`
94+
Code string `json:"code,omitempty"`
95+
ResponseData map[string]interface{} `json:"response_data,omitempty"`
96+
AttemptNumber int `json:"attempt_number"`
97+
Manual bool `json:"manual"`
9898

9999
// Expandable fields - string (ID) or object depending on expand
100100
Event interface{} `json:"event"`
@@ -146,8 +146,8 @@ type EventPaginatedResult struct {
146146
func toAPIAttempt(ar *logstore.AttemptRecord, opts IncludeOptions) APIAttempt {
147147
api := APIAttempt{
148148
AttemptNumber: ar.Attempt.AttemptNumber,
149-
Manual: ar.Attempt.Manual,
150-
Destination: ar.Attempt.DestinationID,
149+
Manual: ar.Attempt.Manual,
150+
Destination: ar.Attempt.DestinationID,
151151
}
152152

153153
if ar.Attempt != nil {

internal/apirouter/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import (
1414
"github.com/hookdeck/outpost/internal/logging"
1515
"github.com/hookdeck/outpost/internal/logstore"
1616
"github.com/hookdeck/outpost/internal/portal"
17-
"github.com/hookdeck/outpost/internal/tenantstore"
1817
"github.com/hookdeck/outpost/internal/publishmq"
1918
"github.com/hookdeck/outpost/internal/redis"
2019
"github.com/hookdeck/outpost/internal/telemetry"
20+
"github.com/hookdeck/outpost/internal/tenantstore"
2121
"go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin"
2222
)
2323

internal/deliverymq/messagehandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/hookdeck/outpost/internal/logging"
1515
"github.com/hookdeck/outpost/internal/models"
1616
"github.com/hookdeck/outpost/internal/mqs"
17-
"github.com/hookdeck/outpost/internal/tenantstore"
1817
"github.com/hookdeck/outpost/internal/scheduler"
18+
"github.com/hookdeck/outpost/internal/tenantstore"
1919
"go.opentelemetry.io/otel/trace"
2020
"go.uber.org/zap"
2121
)

internal/services/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import (
1919
"github.com/hookdeck/outpost/internal/logmq"
2020
"github.com/hookdeck/outpost/internal/logstore"
2121
"github.com/hookdeck/outpost/internal/publishmq"
22-
"github.com/hookdeck/outpost/internal/tenantstore"
2322
"github.com/hookdeck/outpost/internal/redis"
2423
"github.com/hookdeck/outpost/internal/scheduler"
2524
"github.com/hookdeck/outpost/internal/telemetry"
25+
"github.com/hookdeck/outpost/internal/tenantstore"
2626
"github.com/hookdeck/outpost/internal/worker"
2727
"go.uber.org/zap"
2828
)

internal/tenantstore/memtenantstore/memtenantstore.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ type destinationRecord struct {
3636
type store struct {
3737
mu sync.RWMutex
3838

39-
tenants map[string]*tenantRecord // tenantID -> record
40-
destinations map[string]*destinationRecord // "tenantID\x00destID" -> record
41-
destsByTenant map[string]map[string]struct{} // tenantID -> set of destIDs
39+
tenants map[string]*tenantRecord // tenantID -> record
40+
destinations map[string]*destinationRecord // "tenantID\x00destID" -> record
41+
destsByTenant map[string]map[string]struct{} // tenantID -> set of destIDs
4242

4343
maxDestinationsPerTenant int
4444
}

internal/tenantstore/redistenantstore/redistenantstore.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,4 +604,3 @@ func (s *store) MatchEvent(ctx context.Context, event models.Event) ([]string, e
604604

605605
return matched, nil
606606
}
607-

0 commit comments

Comments
 (0)