fix: judge creator, daemon logic
All checks were successful
CI.yml / build (push) Successful in 1m45s
All checks were successful
CI.yml / build (push) Successful in 1m45s
feat: first version for alpha test daemon on server fix: add second template for fix bug with slice Fix: add chek if path exists Fix: template one more time feat: Add file db on init command feat: add create dit feat: Add to init command create table to db feat: Add new logs for debug on server feat: Add CD, first release version chore:fix cd fix: change artifact ver from v4->v2 fix: ci one more time fix: ci
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package Judge
|
||||
package judge
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -16,11 +16,12 @@ type Judge struct {
|
||||
rulesByService map[string][]config.Rule
|
||||
}
|
||||
|
||||
func New(db *storage.DB) *Judge {
|
||||
func New(db *storage.DB, b blocker.BlockerEngine) *Judge {
|
||||
return &Judge{
|
||||
db: db,
|
||||
logger: logger.New(false),
|
||||
rulesByService: make(map[string][]config.Rule),
|
||||
Blocker: b,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user