Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transport: implement GoString on Stream (#1167)
So context.String() won't race when printing %#v. It is not thread-safe to call context.String() on any context with a stream value since valueCtx will use %#v to access all of the Stream fields without holding a lock. Instead, print the Stream's pointer and method for its GoString.
- Loading branch information