style: improve code formatting; refactor module imports
- Apply consistent alignment for struct fields and parameters - Standardize string literal delimiters to single quotes - Refactor module import strategy in `models` package - Enhance asset formatting for precise decimal display - Remove unused imports and redundant `+}` syntax artifacts
This commit is contained in:
@@ -94,6 +94,7 @@ pub fn (mut c Client) send[T, D](request RequestGeneric[T], params SendParams) !
|
||||
myerror := response.error_ or {
|
||||
return error('Failed to get error from response:\nRequest: ${request.encode()}\nResponse: ${response_json}\n${err}')
|
||||
}
|
||||
|
||||
// print_backtrace()
|
||||
mut myreq := request.encode()
|
||||
if c.transport is UnixSocketTransport {
|
||||
|
||||
@@ -78,11 +78,10 @@ pub fn (mut t UnixSocketTransport) send(request string, params SendParams) !stri
|
||||
// Append the newly read data to the total response
|
||||
res_total << res[..n]
|
||||
|
||||
//here we need to check we are at end
|
||||
// here we need to check we are at end
|
||||
if res.bytestr().contains('\n') {
|
||||
break
|
||||
}
|
||||
|
||||
}
|
||||
unix.shutdown(socket.sock.handle)
|
||||
socket.close() or {}
|
||||
|
||||
Reference in New Issue
Block a user