Skip to content

Commit

Permalink
Trigger benchmarking with Bencher
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Nov 19, 2021
1 parent e2d3bef commit 8cf812f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sink.go
Expand Up @@ -32,7 +32,7 @@ import (
"go.uber.org/zap/zapcore"
)

const schemeFile = "file"
const _schemeFile = "file"

var (
_sinkMutex sync.RWMutex
Expand All @@ -48,7 +48,7 @@ func resetSinkRegistry() {
defer _sinkMutex.Unlock()

_sinkFactories = map[string]func(*url.URL) (Sink, error){
schemeFile: newFileSink,
_schemeFile: newFileSink,
}
}

Expand Down Expand Up @@ -101,7 +101,7 @@ func newSink(rawURL string) (Sink, error) {
return nil, fmt.Errorf("can't parse %q as a URL: %v", rawURL, err)
}
if u.Scheme == "" {
u.Scheme = schemeFile
u.Scheme = _schemeFile
}

_sinkMutex.RLock()
Expand Down

0 comments on commit 8cf812f

Please sign in to comment.