Skip to content

Commit

Permalink
chore(das): move jobType declaration closer to consts (#3477)
Browse files Browse the repository at this point in the history
Literally what PR title says. I had a trouble finding what are the
possible values are. Rearranging code to `type than values` way.
  • Loading branch information
cristaloleg authored Jun 10, 2024
1 parent 114adbd commit edef750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions das/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"github.com/celestiaorg/celestia-node/share/p2p/shrexsub"
)

type jobType string

const (
catchupJob jobType = "catchup"
recentJob jobType = "recent"
Expand All @@ -37,8 +39,6 @@ type workerState struct {
curr uint64
}

type jobType string

// job represents headers interval to be processed by worker
type job struct {
id int
Expand Down

0 comments on commit edef750

Please sign in to comment.