Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
gogna
gnparser
Commits
a9d84a78
Commit
a9d84a78
authored
May 07, 2020
by
Dmitry Mozzherin
Browse files
fix for web api
parent
e0fb9cad
Pipeline
#143714113
passed with stages
in 3 minutes and 41 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
web/api.go
web/api.go
+2
-1
No files found.
web/api.go
View file @
a9d84a78
...
...
@@ -43,7 +43,8 @@ func parseSlice(w http.ResponseWriter, ns []string) {
out
:=
make
(
chan
*
gnparser
.
ParseResult
)
var
wg
sync
.
WaitGroup
wg
.
Add
(
1
)
go
gnparser
.
ParseStream
(
8
,
in
,
out
)
opts
:=
[]
gnparser
.
Option
{
gnparser
.
OptFormat
(
"compact"
)}
go
gnparser
.
ParseStream
(
8
,
in
,
out
,
opts
...
)
go
processResults
(
w
,
out
,
&
wg
)
for
_
,
v
:=
range
ns
{
in
<-
v
...
...
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