Skip to content

Commit

Permalink
Update pkg/index/job/exportation/service/exporter.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: s-shiraki <s.shiraki.business@gmail.com>
  • Loading branch information
highpon and coderabbitai[bot] authored Dec 17, 2024
1 parent 247895e commit 76dee08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/index/job/exportation/service/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ func (e *export) doExportIndex(
ctx, cancel := context.WithCancelCause(egctx)
gatewayAddrs := e.gateway.GRPCClient().ConnectedAddrs()
if len(gatewayAddrs) == 0 {
log.Errorf("Active gateway is not found.: %v ", ctx.Err())
log.Errorf("Active gateway is not found: %v", ctx.Err())
return errors.New("no active gateways available")
}

conn, err := grpc.NewClient(gatewayAddrs[0], grpc.WithTransportCredentials(insecure.NewCredentials()))
Expand Down

0 comments on commit 76dee08

Please sign in to comment.