File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ const Command = struct {
142142 const Serve = struct {
143143 host : []const u8 ,
144144 port : u16 ,
145- timeout : u8 ,
145+ timeout : u16 ,
146146 };
147147
148148 const Fetch = struct {
@@ -259,7 +259,7 @@ fn parseServeArgs(
259259) ! Command.Serve {
260260 var host : []const u8 = "127.0.0.1" ;
261261 var port : u16 = 9222 ;
262- var timeout : u8 = 3 ;
262+ var timeout : u16 = 3 ;
263263
264264 while (args .next ()) | opt | {
265265 if (std .mem .eql (u8 , "--host" , opt )) {
@@ -290,7 +290,7 @@ fn parseServeArgs(
290290 return error .MissingTimeout ;
291291 };
292292
293- timeout = std .fmt .parseInt (u8 , str , 10 ) catch | err | {
293+ timeout = std .fmt .parseInt (u16 , str , 10 ) catch | err | {
294294 log .err ("--timeout value is invalid: {}" , .{err });
295295 return error .InvalidTimeout ;
296296 };
You can’t perform that action at this time.
0 commit comments