Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-timcu committed Dec 11, 2024
1 parent 258a38a commit 2f6b049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/agent/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *server) OnRequestShutdown(ctx context.Context, req *protos.RequestMetad
func (s *server) GetCloudConfig(ctx context.Context, req *protos.CloudConfigUpdatedAt) (*protos.CloudConfig, error) {
cloudConfig := getCloudConfig(req.ConfigUpdatedAt)
if cloudConfig == nil {
return nil, status.Errorf(codes.Unavailable, "CloudConfig was not updated")
return nil, status.Errorf(codes.Canceled, "CloudConfig was not updated")
}
return cloudConfig, nil
}
Expand Down
2 changes: 1 addition & 1 deletion lib/request-processor/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func GetCloudConfig() {

cloudConfig, err := client.GetCloudConfig(ctx, &protos.CloudConfigUpdatedAt{ConfigUpdatedAt: utils.GetCloudConfigUpdatedAt()})
if err != nil {
log.Warnf("Could not get cloud config: %v", err)
log.Infof("Could not get cloud config: %v", err)
return
}

Expand Down

0 comments on commit 2f6b049

Please sign in to comment.