Skip to content

Commit aa8637e

Browse files
authored
fix(input): chainsync plugin kupo health url (#401)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 918b5f1 commit aa8637e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

input/chainsync/chainsync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func getKupoClient(c *ChainSync) (*kugo.Client, error) {
462462
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
463463
defer cancel()
464464

465-
healthUrl := strings.TrimRight(c.kupoUrl, "/") + "/v1/health"
465+
healthUrl := strings.TrimRight(c.kupoUrl, "/") + "/health"
466466
req, err := http.NewRequestWithContext(ctx, http.MethodGet, healthUrl, nil)
467467
if err != nil {
468468
return nil, fmt.Errorf("failed to create health check request: %w", err)

0 commit comments

Comments
 (0)