Skip to content

Commit

Permalink
设置依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 28, 2023
1 parent 90c82b3 commit aafebb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncLocal/newAsyncLocal.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (receiver AsyncLocal[T]) Get() T {
var t T
return t
}
return val
return val.(T)
}

// Set 设置值
Expand Down

0 comments on commit aafebb5

Please sign in to comment.