Use string instead of []byte for data to better use JSON payloads
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler 2021-02-24 22:05:32 -05:00
parent 75e9a42a51
commit 45fd96bd05
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ import (
type Job struct {
PasteID string
Data []byte
Data string
}
var (
@ -211,7 +211,7 @@ func worker(rules *yara.Rules, jobs chan Job) {
func processJob(s *yara.Scanner, job Job) {
var m yara.MatchRules
err := s.SetCallback(&m).ScanMem(job.Data)
err := s.SetCallback(&m).ScanMem([]byte(job.Data))
if err != nil {
return