Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Goblin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
We are moving to Forgejo!
You are on a read-only GitLab instance.
Show more breadcrumbs
Dominik Kozaczko
Goblin
Commits
4885eb20
Commit
4885eb20
authored
9 years ago
by
davebshow
Browse files
Options
Downloads
Patches
Plain Diff
removed unneeded stuff on the iterator
parent
6761c173
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
goblin/driver/connection.py
+3
-4
3 additions, 4 deletions
goblin/driver/connection.py
with
3 additions
and
4 deletions
goblin/driver/connection.py
+
3
−
4
View file @
4885eb20
...
@@ -16,9 +16,10 @@ Message = collections.namedtuple(
...
@@ -16,9 +16,10 @@ Message = collections.namedtuple(
class
AsyncResponseIter
:
class
AsyncResponseIter
:
def
__init__
(
self
,
response_queue
,
loop
:
def
__init__
(
self
,
response_queue
,
loop
,
conn
)
:
self
.
_response_queue
=
response_queue
self
.
_response_queue
=
response_queue
self
.
_loop
=
loop
self
.
_loop
=
loop
self
.
_conn
=
conn
async
def
__aiter__
(
self
):
async
def
__aiter__
(
self
):
return
self
return
self
...
@@ -134,9 +135,7 @@ class Connection(AbstractConnection):
...
@@ -134,9 +135,7 @@ class Connection(AbstractConnection):
response_queue
=
asyncio
.
Queue
(
loop
=
self
.
_loop
)
response_queue
=
asyncio
.
Queue
(
loop
=
self
.
_loop
)
self
.
response_queues
[
request_id
]
=
response_queue
self
.
response_queues
[
request_id
]
=
response_queue
self
.
_ws
.
send_bytes
(
message
)
self
.
_ws
.
send_bytes
(
message
)
return
AsyncResponseIter
(
response_queue
,
self
.
_loop
,
self
,
return
AsyncResponseIter
(
response_queue
,
self
.
_loop
,
self
)
self
.
_username
,
self
.
_password
,
processor
,
session
)
async
def
close
(
self
):
async
def
close
(
self
):
await
self
.
_ws
.
close
()
await
self
.
_ws
.
close
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment