Skip to content

Commit

Permalink
Fix workflow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne0nd0g committed Nov 2, 2023
1 parent 918eba3 commit 8b0777e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/services/rpc/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (s *Server) GetAllJobs(ctx context.Context, e *emptypb.Empty) (*pb.Jobs, er

// jobToJobInfo converts a server-side Job Info structure into a protobuf Job structure
func (s *Server) jobToJobInfo(job jobs.Info) *pb.Job {
slog.Log(context.Background(), logging.LevelTrace, "job info", job)
slog.Log(context.Background(), logging.LevelTrace, "job info", fmt.Sprintf("%+v", job))

Check failure on line 140 in pkg/services/rpc/job.go

View workflow job for this annotation

GitHub Actions / Build Job

call to slog.Log missing a final value
j := &pb.Job{
ID: job.ID(),
AgentID: job.AgentID().String(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (s *Server) Reconnect(ctx context.Context, id *pb.ID) (*pb.ID, error) {
cliClient := client.NewClientWithID(clientID)
s.clientRepo.Add(cliClient)
s.messageChan[cliClient.ID()] = make(chan *pb.Message, 100)
slog.Info(fmt.Sprintf("Re-registered new RPC client with ID %s", cliClient))
slog.Info(fmt.Sprintf("Re-registered new RPC client with ID %s", cliClient.ID()))
}
return &pb.ID{Id: clientID.String()}, nil
}
Expand Down

0 comments on commit 8b0777e

Please sign in to comment.