Skip to content

Commit

Permalink
🐳 chore: improve the notes of some methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nowanti committed Oct 26, 2023
1 parent 5fc6f40 commit 47955d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onestep/broker/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ def send(self, message):
@abc.abstractmethod
def publish(self, message: Any):
"""
如果当前Broker是Job的to_broker, 则必须实现此方法
将消息原样发布到 broker 中。如果当前Broker是Job的to_broker, 则必须实现此方法
"""
raise NotImplementedError('Please implement in subclasses.')

@abc.abstractmethod
def consume(self, *args, **kwargs):
"""
如果当前Broker是Job的from_broker, 则必须实现此方法
消费消息。如果当前Broker是Job的from_broker, 则必须实现此方法
"""
raise NotImplementedError('Please implement in subclasses.')

Expand Down

0 comments on commit 47955d7

Please sign in to comment.