Skip to content

Commit 681c94a

Browse files
authored
rename CheckerTaskType to CheckerMethod (#18)
1 parent 72cd98a commit 681c94a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

enochecker_core/__init__.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def __str__(self) -> str:
1414
return self.value
1515

1616

17-
class CheckerTaskType(Enum):
17+
class CheckerMethod(Enum):
1818
value: str
19-
CHECKER_TASK_TYPE_PUTFLAG = "putflag"
20-
CHECKER_TASK_TYPE_GETFLAG = "getflag"
21-
CHECKER_TASK_TYPE_PUTNOISE = "putnoise"
22-
CHECKER_TASK_TYPE_GETNOISE = "getnoise"
23-
CHECKER_TASK_TYPE_HAVOC = "havoc"
19+
CHECKER_METHOD_PUTFLAG = "putflag"
20+
CHECKER_METHOD_GETFLAG = "getflag"
21+
CHECKER_METHOD_PUTNOISE = "putnoise"
22+
CHECKER_METHOD_GETNOISE = "getnoise"
23+
CHECKER_METHOD_HAVOC = "havoc"
2424

2525
def __str__(self) -> str:
2626
return self.value
@@ -64,7 +64,7 @@ class EnoLogMessage:
6464
@dataclass
6565
class CheckerTaskMessage:
6666
task_id: int
67-
method: CheckerTaskType
67+
method: CheckerMethod
6868
address: str
6969
team_id: int
7070
team_name: str

0 commit comments

Comments
 (0)