1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-23 21:44:41 +02:00

fix: some linting issues (#2563)

This commit is contained in:
David Brouwer
2022-09-30 16:27:07 +02:00
committed by GitHub
parent 47e6a8d725
commit 85c0b0b8eb
221 changed files with 1025 additions and 1283 deletions

View File

@@ -7,11 +7,11 @@ import (
)
var (
// ErrWatcherStopped is returned when source watcher has been stopped
// ErrWatcherStopped is returned when source watcher has been stopped.
ErrWatcherStopped = errors.New("watcher stopped")
)
// Source is the source from which config is loaded
// Source is the source from which config is loaded.
type Source interface {
Read() (*ChangeSet, error)
Write(*ChangeSet) error
@@ -19,7 +19,7 @@ type Source interface {
String() string
}
// ChangeSet represents a set of changes from a source
// ChangeSet represents a set of changes from a source.
type ChangeSet struct {
Data []byte
Checksum string
@@ -28,7 +28,7 @@ type ChangeSet struct {
Timestamp time.Time
}
// Watcher watches a source for changes
// Watcher watches a source for changes.
type Watcher interface {
Next() (*ChangeSet, error)
Stop() error