When I use the following code to subscribe to a topic, I can not use the same code to subscribe to some different topic. How can I subscribe to different topics?
@PubSub.subscribe('pubsub', 'EnergyManagement/CurrentPrice')
def on_match(self, peer, sender, bus, topic, headers, message):
@PubSub.subscribe('pubsub', 'EnergyManagement/futurePrice')
def on_match(self, peer, sender, bus, topic, headers, message):