Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
829a31de
Commit
829a31de
authored
Jul 21, 2019
by
fangyincheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix:add deprecated comment
parent
058d6525
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
getty.go
getty.go
+4
-0
session.go
session.go
+3
-0
No files found.
getty.go
View file @
829a31de
...
...
@@ -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
)
...
...
session.go
View file @
829a31de
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment