Skip to content

Commit 32be855

Browse files
committed
net.unix: cleanup const use_net = net.no_timeout workarounds, use import net as _ instead
1 parent f409757 commit 32be855

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

vlib/net/unix/aasocket.c.v

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module unix
22

3-
import net
4-
5-
const use_net = net.no_timeout
3+
import net as _
64

75
const max_sun_path = $if windows {
86
256

vlib/net/unix/use_net_and_net_unix_together_test.v

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import os
22
import net.unix
3-
import net
4-
5-
const use_net = net.no_timeout // ensure that `net` is used, i.e. no warnings
3+
import net as _
64

75
const tfolder = os.join_path(os.temp_dir(), 'nuut_${os.getpid()}')
86
const test_port = os.join_path(tfolder, 'domain_socket')

0 commit comments

Comments
 (0)