Fixed a compilation error in the example
This commit is contained in:
parent
2fc18a00f6
commit
9f1c394697
@ -337,7 +337,7 @@ public class TimeServerHandler extends &SimpleChannelHandler; {
|
|||||||
&Channel; ch = e.getChannel();
|
&Channel; ch = e.getChannel();
|
||||||
|
|
||||||
&ChannelBuffer; time = &ChannelBuffers;.buffer(4);<co id="example.time.co2"/>
|
&ChannelBuffer; time = &ChannelBuffers;.buffer(4);<co id="example.time.co2"/>
|
||||||
time.writeInt(System.currentTimeMillis() / 1000);
|
time.writeInt((int) (System.currentTimeMillis() / 1000));
|
||||||
|
|
||||||
&ChannelFuture; f = ch.write(time);<co id="example.time.co3"/>
|
&ChannelFuture; f = ch.write(time);<co id="example.time.co3"/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user