Skip to content

Commit

Permalink
removed obsoleted struct and commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdutchak committed Aug 2, 2024
1 parent 680e8b6 commit 272ece4
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions pkg/workers/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,6 @@ var (
workerDoneCh = make(chan *pubsub2.Message)
)

// // WorkerCategory represents the main categories of workers
// type WorkerCategory int64

// const (
// CategoryDiscord WorkerCategory = iota
// CategoryTelegram
// CategoryTwitter
// CategoryWeb
// )

// // String returns the string representation of the WorkerCategory
// func (wc WorkerCategory) String() string {
// return [...]string{"Discord", "Telegram", "Twitter", "Web"}[wc]
// }

// WorkerTypeToCategory maps WorkerType to WorkerCategory
func WorkerTypeToCategory(wt WorkerType) pubsub.WorkerCategory {
switch wt {
Expand All @@ -107,17 +92,6 @@ func WorkerTypeToCategory(wt WorkerType) pubsub.WorkerCategory {
}
}

type CID struct {
Duration float64 `json:"duration"`
RecordId string `json:"cid"`
Timestamp int64 `json:"timestamp"`
}

type Record struct {
PeerId string `json:"peerid"`
CIDs []CID `json:"cids"`
}

type ChanResponse struct {
Response map[string]interface{}
ChannelId string
Expand Down

0 comments on commit 272ece4

Please sign in to comment.