Skip to content

Commit

Permalink
Fix job invalid job name
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Kartago Lamida <[email protected]>
  • Loading branch information
lamida committed May 14, 2024
1 parent 8ed368c commit fbe7a33
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

# same like above jobs, but use go1.20
# todo: find a way to parameterise the go version
test-build-go-1.20:
test-build-go-1-20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 6 additions & 1 deletion ring/example/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (

"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"

"github.com/grafana/dskit/dns"
"github.com/grafana/dskit/flagext"
"github.com/grafana/dskit/kv"
"github.com/grafana/dskit/kv/codec"
"github.com/grafana/dskit/kv/memberlist"
"github.com/grafana/dskit/ring"
"github.com/grafana/dskit/services"
"github.com/prometheus/client_golang/prometheus"
)

var (
Expand Down Expand Up @@ -146,6 +147,9 @@ func runClient() {
for _, v := range replicas.Instances {
fmt.Println("Addr", v.Addr, "Token count", len(v.Tokens))
}
for _, x := range replicas.GetIDs() {
fmt.Println("ID", x)
}
}

}
Expand Down Expand Up @@ -181,6 +185,7 @@ func SimpleMemberlistKV(bindaddr string, bindport int, joinmembers []string) *me

config.NodeName = bindaddr
config.StreamTimeout = 5 * time.Second
config.MessageHistoryBufferBytes = 1 * 1024 * 1024

return memberlist.NewKVInitService(
&config,
Expand Down
2 changes: 1 addition & 1 deletion user/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func InjectOrgID(ctx context.Context, orgID string) context.Context {
return context.WithValue(ctx, interface{}(orgIDContextKey), orgID)
}

// ExtractUserID gets the user ID from the context.
// ExtractUserID gets the user ID from the contextmi.
func ExtractUserID(ctx context.Context) (string, error) {
userID, ok := ctx.Value(userIDContextKey).(string)
if !ok {
Expand Down

0 comments on commit fbe7a33

Please sign in to comment.