Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjie199234 committed Mar 14, 2024
1 parent 5488e85 commit f852e38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "fmt"

var major = 0
var minor = 0
var patch = 104
var patch = 105
var status = ""

func String() string {
Expand Down
4 changes: 2 additions & 2 deletions stream/connmng.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ func (m *connmng) GetPeer(uniqueid string) *Peer {
return nil
}
g := m.groups[common.Bkdrhash(common.STB(uniqueid), uint64(len(m.groups)))]
g.Lock()
defer g.Unlock()
g.RLock()
defer g.RUnlock()
return g.peers[uniqueid]
}

Expand Down

0 comments on commit f852e38

Please sign in to comment.