Skip to content

Commit

Permalink
feat: context err
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Feb 28, 2020
1 parent e28d6bf commit 314df4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ func MFrom(ctx context.Context) (*M, bool) {

// ErrFrom 拿出context error
func ErrFrom(ctx context.Context) (*M, bool) {
m, ok := ctx.Value(aliyunMnsM).(*M)
m, ok := ctx.Value(aliyunMnsContextErr).(*M)
return m, ok
}

0 comments on commit 314df4b

Please sign in to comment.