Add unexported method to timeout writer
This commit is contained in:
parent
de339490f4
commit
41c95add81
@ -123,7 +123,6 @@ func (t *timeoutHandler) ServeGemini(ctx context.Context, w ResponseWriter, r *R
|
|||||||
}
|
}
|
||||||
|
|
||||||
type timeoutWriter struct {
|
type timeoutWriter struct {
|
||||||
ResponseWriter
|
|
||||||
wc io.WriteCloser
|
wc io.WriteCloser
|
||||||
status Status
|
status Status
|
||||||
meta string
|
meta string
|
||||||
@ -158,3 +157,5 @@ func (w *timeoutWriter) Flush() error {
|
|||||||
func (w *timeoutWriter) Close() error {
|
func (w *timeoutWriter) Close() error {
|
||||||
return w.wc.Close()
|
return w.wc.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (w *timeoutWriter) unexported() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user