Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pleroma
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
399
Issues
399
List
Boards
Labels
Service Desk
Milestones
Merge Requests
59
Merge Requests
59
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pleroma
pleroma
Commits
67afd024
Commit
67afd024
authored
Feb 21, 2018
by
lain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Streamer: Make it less chatty.
parent
810cf861
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lib/pleroma/web/streamer.ex
lib/pleroma/web/streamer.ex
+1
-3
No files found.
lib/pleroma/web/streamer.ex
View file @
67afd024
...
...
@@ -74,7 +74,6 @@ def handle_cast(%{action: :add, topic: topic, socket: socket}, sockets) do
sockets_for_topic
=
Enum
.
uniq
([
socket
|
sockets_for_topic
])
sockets
=
Map
.
put
(
sockets
,
topic
,
sockets_for_topic
)
Logger
.
debug
(
"Got new conn for
#{
topic
}
"
)
IO
.
inspect
(
sockets
)
{
:noreply
,
sockets
}
end
...
...
@@ -84,12 +83,11 @@ def handle_cast(%{action: :remove, topic: topic, socket: socket}, sockets) do
sockets_for_topic
=
List
.
delete
(
sockets_for_topic
,
socket
)
sockets
=
Map
.
put
(
sockets
,
topic
,
sockets_for_topic
)
Logger
.
debug
(
"Removed conn for
#{
topic
}
"
)
IO
.
inspect
(
sockets
)
{
:noreply
,
sockets
}
end
def
handle_cast
(
m
,
state
)
do
IO
.
inspect
(
"Unknown:
#{
inspect
(
m
)
}
,
#{
inspect
(
state
)
}
"
)
Logger
.
info
(
"Unknown:
#{
inspect
(
m
)
}
,
#{
inspect
(
state
)
}
"
)
{
:noreply
,
state
}
end
...
...
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