File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ impl Thread {
31
31
let nanos = dur. as_nanos ( ) ;
32
32
assert ! ( nanos <= u64 :: max_value( ) as u128 ) ;
33
33
34
- const CLOCK_ID : wasi:: Userdata = 0x0123_45678 ;
34
+ const USERDATA : wasi:: Userdata = 0x0123_45678 ;
35
35
36
36
let clock = wasi:: raw:: __wasi_subscription_u_clock_t {
37
- identifier : CLOCK_ID ,
37
+ identifier : 0 ,
38
38
clock_id : wasi:: CLOCK_MONOTONIC ,
39
39
timeout : nanos as u64 ,
40
40
precision : 0 ,
41
41
flags : 0 ,
42
42
} ;
43
43
44
44
let in_ = [ wasi:: Subscription {
45
- userdata : 0 ,
45
+ userdata : USERDATA ,
46
46
type_ : wasi:: EVENTTYPE_CLOCK ,
47
47
u : wasi:: raw:: __wasi_subscription_u { clock : clock } ,
48
48
} ] ;
@@ -53,7 +53,7 @@ impl Thread {
53
53
} ;
54
54
match ( res, event) {
55
55
( Ok ( 1 ) , wasi:: Event {
56
- userdata : CLOCK_ID ,
56
+ userdata : USERDATA ,
57
57
error : 0 ,
58
58
type_ : wasi:: EVENTTYPE_CLOCK ,
59
59
..
You can’t perform that action at this time.
0 commit comments