Skip to content

Commit

Permalink
fix context key
Browse files Browse the repository at this point in the history
  • Loading branch information
atotto committed Sep 3, 2021
1 parent f2a9bb9 commit 21d6c8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ package packagecloud

import "context"

type packagecloudContextKey string

const (
packagecloudTokenKey = "packagecloud token"
packagecloudTokenKey packagecloudContextKey = "packagecloud token"
)

func WithPackagecloudToken(ctx context.Context, token string) context.Context {
Expand Down

0 comments on commit 21d6c8b

Please sign in to comment.