Skip to content

Commit

Permalink
style:go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
songzhibin97 committed Jun 13, 2021
1 parent 086d801 commit 75f599f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/data/data_handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package data

import (
"Songzhibin/ws/internal/biz"
"songzhibin/ws/internal/biz"
"sync"
"sync/atomic"
)
Expand Down Expand Up @@ -33,7 +33,7 @@ func (h *Handle) Register(i int32, handlerFunc biz.TypeHandlerFunc) bool {
return true
}

// GetHandler: 获取注册函数
// GetHandler 获取注册函数
func (h *Handle) GetHandler(i int32) (biz.TypeHandlerFunc, bool) {
oMap := h.f.Load().(map[int32]biz.TypeHandlerFunc)
f, ok := oMap[i]
Expand Down

0 comments on commit 75f599f

Please sign in to comment.