Commit 829a31de authored by fangyincheng's avatar fangyincheng

Fix:add deprecated comment

parent 058d6525
......@@ -153,6 +153,10 @@ type Session interface {
SetReader(Reader)
SetWriter(Writer)
SetCronPeriod(int)
// Deprecated: don's use read queue.
SetRQLen(int)
SetWQLen(int)
SetWaitTime(time.Duration)
SetTaskPool(*TaskPool)
......
......@@ -273,6 +273,9 @@ func (s *session) SetCronPeriod(period int) {
s.period = time.Duration(period) * time.Millisecond
}
// Deprecated: don's use read queue.
func (s *session) SetRQLen(readQLen int) {}
// set @session's Write queue size
func (s *session) SetWQLen(writeQLen int) {
if writeQLen < 1 {
......
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