refactor: add SendWithCheck for adb transport

This commit is contained in:
lilong.129
2023-06-23 13:41:29 +08:00
parent 10b4612afa
commit 65cfb86ac5
4 changed files with 19 additions and 22 deletions
+1
View File
@@ -17,6 +17,7 @@ type syncTransport struct {
readTimeout time.Duration
}
// newSyncTransport creates a new sync transport with existed tcp socket connection
func newSyncTransport(sock net.Conn, readTimeout time.Duration) syncTransport {
return syncTransport{sock: sock, readTimeout: readTimeout}
}