Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e7fcb824
authored
2014-07-26 23:25:51 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
utils: fix the safemap Items
1 parent
ee9749d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
utils/safemap.go
utils/safemap.go
View file @
e7fcb82
...
...
@@ -72,5 +72,9 @@ func (m *BeeMap) Delete(k interface{}) {
func
(
m
*
BeeMap
)
Items
()
map
[
interface
{}]
interface
{}
{
m
.
lock
.
RLock
()
defer
m
.
lock
.
RUnlock
()
return
m
.
bm
r
:=
make
(
map
[
interface
{}]
interface
{})
for
k
,
v
:=
range
m
.
bm
{
r
[
k
]
=
v
}
return
r
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment