fix(build): make build-web works; gofmt all Go files
This commit is contained in:
@@ -5,15 +5,15 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
lksdk "github.com/livekit/server-sdk-go/v2"
|
||||
"github.com/livekit/protocol/auth"
|
||||
"github.com/livekit/protocol/livekit"
|
||||
lksdk "github.com/livekit/server-sdk-go/v2"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
apiKey string
|
||||
apiSecret string
|
||||
url string
|
||||
apiKey string
|
||||
apiSecret string
|
||||
url string
|
||||
roomClient *lksdk.RoomServiceClient
|
||||
}
|
||||
|
||||
@@ -62,8 +62,8 @@ func (c *Client) CreateRoom(name string) (*livekit.Room, error) {
|
||||
}
|
||||
|
||||
room, err := c.roomClient.CreateRoom(context.Background(), &livekit.CreateRoomRequest{
|
||||
Name: name,
|
||||
EmptyTimeout: 300, // 5 minutes before auto-delete when empty
|
||||
Name: name,
|
||||
EmptyTimeout: 300, // 5 minutes before auto-delete when empty
|
||||
MaxParticipants: 20,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user