New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add buffering wrapper around WriteSyncer #782
Commits on Oct 13, 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Update zapcore/write_syncer.go
Co-authored-by: Prashant Varanasi <github@prashantv.com>
-
-
-
-
-
Update zapcore/write_syncer.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>
-
Update zapcore/write_syncer_test.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>
-
Update zapcore/write_syncer_test.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>
-
Update zapcore/write_syncer_test.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>
-
Update zapcore/write_syncer_test.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>
-
Update zapcore/write_syncer_test.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>
-
Update zapcore/write_syncer_test.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>
-
Commits on Nov 2, 2020
-
We'd like to avoid introducing a new top-level type if we can. Delete the CloseFunc type in favor of returning a naked `func() error`.
-
-
-
Buffer/close: return a bound method
Instead of returning an anonmyous function, return a bound method. The bound method is named `close`, not `Close` to avoid accidentally exposing an `io.Closer` interface.
-
Buffer/close: Close the channel instead of posting
For the channel that signals end of the goroutine, we should close it instead of posting a single value to it.
-
-
buffer: Move loop into a method
Move the flush loop into its own method instead of spawning it in a closure.
-
On close, stop the ticker from posting ticks to the channel.
Commits on Nov 6, 2020
-
Update zapcore/write_syncer_test.go
Co-authored-by: Prashant Varanasi <github@prashantv.com>
-
Update zapcore/write_syncer.go
Co-authored-by: Prashant Varanasi <github@prashantv.com>
-
-
-
Update zapcore/write_syncer.go
Co-authored-by: Prashant Varanasi <github@prashantv.com>
-
Update zapcore/write_syncer.go
Co-authored-by: Prashant Varanasi <github@prashantv.com>
-
-
Update zapcore/write_syncer.go
Co-authored-by: Prashant Varanasi <github@prashantv.com>
-
Update zapcore/write_syncer.go
Co-authored-by: Abhinav Gupta <mail@abhinavg.net>