...
This commit is contained in:
@@ -52,6 +52,7 @@ println(' - API title: ${spec.info.title}')
|
||||
println(' - API version: ${spec.info.version}')
|
||||
println(' - Methods available: ${spec.methods.len}')
|
||||
|
||||
|
||||
// 2. List all services
|
||||
println('\n2. Listing all services...')
|
||||
services := client.service_list() or {
|
||||
|
||||
@@ -79,6 +79,9 @@ pub fn (mut t UnixSocketTransport) send(request string, params SendParams) !stri
|
||||
res_total << res[..n]
|
||||
|
||||
//here we need to check we are at end
|
||||
if res.bytestr().contains('\n') {
|
||||
break
|
||||
}
|
||||
|
||||
}
|
||||
unix.shutdown(socket.sock.handle)
|
||||
|
||||
Reference in New Issue
Block a user