mirror of https://github.com/synctv-org/synctv
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.
19 lines
297 B
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
|
|
}
|