You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/internal/bootstrap/op.go

19 lines
297 B
Go

package bootstrap
import (
"context"
"time"
"github.com/synctv-org/synctv/internal/conf"
"github.com/synctv-org/synctv/internal/op"
)
func InitOp(ctx context.Context) error {
d, err := time.ParseDuration(conf.Conf.Room.TTL)
if err != nil {
return err
}
op.Init(4096, d)
return nil
}