Skip to content

Commit d6c6828

Browse files
committed
string to stringliteral in listen
1 parent 835a725 commit d6c6828

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lightbug_http/address.mojo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ struct NetworkType(EqualityComparableCollectionElement):
123123

124124
fn is_ipv4(self) -> Bool:
125125
"""Check if the network type is IPv4."""
126-
print("self.value:", self.value)
127126
return self in (NetworkType.tcp4, NetworkType.udp4, NetworkType.ip4)
128127

129128
fn is_ipv6(self) -> Bool:

lightbug_http/server.mojo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct Server(Movable):
8181
"""
8282
return self.max_concurrent_connections
8383

84-
fn listen_and_serve[T: HTTPService](mut self, address: String, mut handler: T) raises:
84+
fn listen_and_serve[T: HTTPService](mut self, address: StringLiteral, mut handler: T) raises:
8585
"""Listen for incoming connections and serve HTTP requests.
8686
8787
Parameters:

0 commit comments

Comments
 (0)