From 4683f67a04aadb2e044c94d3d99a101f53b025f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B3pez=20Guimaraes?= Date: Thu, 25 Jan 2024 17:35:00 +0000 Subject: [PATCH] prudp: DefaultstreamSettings -> DefaultStreamSettings --- prudp_endpoint.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prudp_endpoint.go b/prudp_endpoint.go index b2ef39e..ae215e0 100644 --- a/prudp_endpoint.go +++ b/prudp_endpoint.go @@ -16,7 +16,7 @@ import ( type PRUDPEndPoint struct { Server *PRUDPServer StreamID uint8 - DefaultstreamSettings *StreamSettings + DefaultStreamSettings *StreamSettings Connections *MutexMap[string, *PRUDPConnection] packetEventHandlers map[string][]func(packet PacketInterface) connectionEndedEventHandlers []func(connection *PRUDPConnection) @@ -86,7 +86,7 @@ func (pep *PRUDPEndPoint) processPacket(packet PRUDPPacketInterface, socket *Soc connection.DefaultPRUDPVersion = packet.Version() connection.StreamType = streamType connection.StreamID = streamID - connection.StreamSettings = pep.DefaultstreamSettings.Copy() + connection.StreamSettings = pep.DefaultStreamSettings.Copy() connection.startHeartbeat() // * Fail-safe. If the server reboots, then @@ -610,7 +610,7 @@ func (pep *PRUDPEndPoint) FindConnectionByPID(pid uint64) *PRUDPConnection { func NewPRUDPEndPoint(streamID uint8) *PRUDPEndPoint { return &PRUDPEndPoint{ StreamID: streamID, - DefaultstreamSettings: NewStreamSettings(), + DefaultStreamSettings: NewStreamSettings(), Connections: NewMutexMap[string, *PRUDPConnection](), packetEventHandlers: make(map[string][]func(PacketInterface)), connectionEndedEventHandlers: make([]func(connection *PRUDPConnection), 0),