mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
12 lines
308 B
Go
12 lines
308 B
Go
package sub_client
|
|
|
|
// Subscribe subscribes to a topic's specified partitions.
|
|
// If a partition is moved to another broker, the subscriber will automatically reconnect to the new broker.
|
|
|
|
func (sub *TopicSubscriber) Subscribe() error {
|
|
// loop forever
|
|
sub.doKeepConnectedToSubCoordinator()
|
|
|
|
return nil
|
|
}
|