Compare commits
5 Commits
46ee612fed
...
48677ffe44
Author | SHA1 | Date |
---|---|---|
Trond Ekseth | 48677ffe44 | |
Trond Ekseth | 1740ee4ffd | |
Trond Ekseth | 18ed3982f6 | |
Stein Ivar Berghei | 7e7b4ea8f8 | |
Stein Ivar Berghei | d11799c5f7 |
4
db.go
4
db.go
|
@ -8,10 +8,6 @@ import (
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
connstring = "host=localhost user=steino dbname=dndmusicbot sslmode=disable"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.Println("db.go loading..")
|
log.Println("db.go loading..")
|
||||||
var err error
|
var err error
|
||||||
|
|
|
@ -71,7 +71,7 @@ RETRY:
|
||||||
|
|
||||||
// FFmpeg requires a certain buffer size to start writing. This seems to be enough?
|
// FFmpeg requires a certain buffer size to start writing. This seems to be enough?
|
||||||
// This will grow big enough to fit the whole song.
|
// This will grow big enough to fit the whole song.
|
||||||
ff.Out = bytes.NewBuffer(make([]byte, 43920))
|
ff.Out = bytes.NewBuffer(make([]byte, 128*1024))
|
||||||
ff.Cmd.Stdout = ff.Out
|
ff.Cmd.Stdout = ff.Out
|
||||||
|
|
||||||
exitctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
exitctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||||
|
|
Loading…
Reference in New Issue