Commit a9d84a78 authored by Dmitry Mozzherin's avatar Dmitry Mozzherin
Browse files

fix for web api

parent e0fb9cad
Pipeline #143714113 passed with stages
in 3 minutes and 41 seconds
......@@ -43,7 +43,8 @@ func parseSlice(w http.ResponseWriter, ns []string) {
out := make(chan *gnparser.ParseResult)
var wg sync.WaitGroup
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
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