Skip to content

Commit

Permalink
rename CheckerTaskType to CheckerMethod (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldruschk authored Apr 22, 2021
1 parent 72cd98a commit 681c94a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions enochecker_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def __str__(self) -> str:
return self.value


class CheckerTaskType(Enum):
class CheckerMethod(Enum):
value: str
CHECKER_TASK_TYPE_PUTFLAG = "putflag"
CHECKER_TASK_TYPE_GETFLAG = "getflag"
CHECKER_TASK_TYPE_PUTNOISE = "putnoise"
CHECKER_TASK_TYPE_GETNOISE = "getnoise"
CHECKER_TASK_TYPE_HAVOC = "havoc"
CHECKER_METHOD_PUTFLAG = "putflag"
CHECKER_METHOD_GETFLAG = "getflag"
CHECKER_METHOD_PUTNOISE = "putnoise"
CHECKER_METHOD_GETNOISE = "getnoise"
CHECKER_METHOD_HAVOC = "havoc"

def __str__(self) -> str:
return self.value
Expand Down Expand Up @@ -64,7 +64,7 @@ class EnoLogMessage:
@dataclass
class CheckerTaskMessage:
task_id: int
method: CheckerTaskType
method: CheckerMethod
address: str
team_id: int
team_name: str
Expand Down

0 comments on commit 681c94a

Please sign in to comment.