Skip to content

Commit 88c5d0a

Browse files
allaouiaminemimir-d
authored andcommitted
Update pkg/types/types.go
Co-authored-by: mimir-d <mimir-d@users.noreply.github.com> Signed-off-by: Amine Allaoui <aamine@meta.com>
1 parent 80fd533 commit 88c5d0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/types/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type JobID uint64
1717
// RunID represents the id of a run within the Job
1818
type RunID uint64
1919

20-
// JobOwnerID represents a unique owner identifier of a job
20+
// JobOwnerID represents a unique owner identifier of a given job
2121
type JobOwnerID uint64
2222

2323
func (v JobID) String() string {
@@ -60,7 +60,7 @@ func RunIDFromContext(ctx xcontext.Context) (RunID, bool) {
6060
// JobOwnerIDFromContext is a helper to get the JobOwnerID.
6161
// Not all context object everywhere have this set, but this is
6262
// guaranteed to work in TargetManagers, TestSteps and RunReporters
63-
func JobOwnerIDFromContext(ctx xcontext.Context) (RunID, bool) {
63+
func JobOwnerIDFromContext(ctx xcontext.Context) (JobOwnerID, bool) {
6464
v, ok := ctx.Value(KeyJobOwnerID).(JobOwnerID)
6565
return v, ok
6666
}

0 commit comments

Comments
 (0)