Commit 614f0c73 authored by AlexStocks's avatar AlexStocks

delete session.SetTaskPool

parent d80971ca
...@@ -31,7 +31,6 @@ import ( ...@@ -31,7 +31,6 @@ import (
import ( import (
gxbytes "github.com/dubbogo/gost/bytes" gxbytes "github.com/dubbogo/gost/bytes"
gxcontext "github.com/dubbogo/gost/context" gxcontext "github.com/dubbogo/gost/context"
gxsync "github.com/dubbogo/gost/sync"
gxtime "github.com/dubbogo/gost/time" gxtime "github.com/dubbogo/gost/time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
...@@ -303,14 +302,6 @@ func (s *session) SetWaitTime(waitTime time.Duration) { ...@@ -303,14 +302,6 @@ func (s *session) SetWaitTime(waitTime time.Duration) {
s.wait = waitTime s.wait = waitTime
} }
// Deprecated: set task pool
func (s *session) SetTaskPool(p *gxsync.TaskPool) {
s.lock.Lock()
defer s.lock.Unlock()
s.tPool = p
}
// set attribute of key @session:key // set attribute of key @session:key
func (s *session) GetAttribute(key interface{}) interface{} { func (s *session) GetAttribute(key interface{}) interface{} {
s.lock.RLock() s.lock.RLock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment