mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
commit
5787cf8467
@ -96,7 +96,7 @@ var (
|
||||
)
|
||||
|
||||
func Instance() *singleton {
|
||||
if atomic.LoadUInt32(&initialized) == 1 {
|
||||
if atomic.LoadUint32(&initialized) == 1 {
|
||||
return instance
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user