Skip to content

Commit

Permalink
Fix copying mutex by value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy committed Jul 16, 2016
1 parent 7d71839 commit ea8280a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mux/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func WithResponseWriter(ctx netContext.Context, w http.ResponseWriter) (netConte

if closeNotifier, ok := w.(http.CloseNotifier); ok {
irwCN := &instrumentedResponseWriterCN{
instrumentedResponseWriter: irw,
instrumentedResponseWriter: &irw,
CloseNotifier: closeNotifier,
}

Expand Down Expand Up @@ -279,7 +279,7 @@ func (ctx *muxVarsContext) Value(key interface{}) interface{} {
// context. It implements http.CloseNotifier so that users can detect
// early disconnects.
type instrumentedResponseWriterCN struct {
instrumentedResponseWriter
*instrumentedResponseWriter
http.CloseNotifier
}

Expand Down

0 comments on commit ea8280a

Please sign in to comment.