mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-10 10:07:27 -06:00
refactor: rename files into common naming, rename GetId to NextId, document function
This commit is contained in:
@@ -140,7 +140,7 @@ func SubscribeToStateChangedEvents(id int64, conn *WebsocketWriter, ctx context.
|
||||
func SubscribeToEventType(eventType string, conn *WebsocketWriter, ctx context.Context, id ...int64) {
|
||||
var finalId int64
|
||||
if len(id) == 0 {
|
||||
finalId = internal.GetId()
|
||||
finalId = internal.NextId()
|
||||
} else {
|
||||
finalId = id[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user