1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

registry: fix typo (#835)

This commit is contained in:
Cluas 2021-04-14 13:54:14 +08:00 committed by GitHub
parent c673439d96
commit b88db2a533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,12 +20,12 @@ type Discovery interface {
// Watcher is service watcher.
type Watcher interface {
// Watch returns services in the following two cases:
// Next returns services in the following two cases:
// 1.the first time to watch and the service instance list is not empty.
// 2.any service instance changes found.
// if the above two conditions are not met, it will block until context deadline exceeded or canceled
Next() ([]*ServiceInstance, error)
// Close close the watcher.
// Stop close the watcher.
Stop() error
}