Code cleanup / beta stuff

This commit is contained in:
jdl
2023-12-03 20:38:45 +01:00
parent 728b34b684
commit 9785637b3b
2 changed files with 4 additions and 10 deletions

View File

@@ -73,6 +73,10 @@ type Database struct {
}
func New(conf Config) *Database {
if conf.NetTimeout <= 0 {
conf.NetTimeout = time.Minute
}
if conf.MaxConcurrentUpdates <= 0 {
conf.MaxConcurrentUpdates = 32
}
@@ -183,7 +187,3 @@ func (db *Database) addCollection(id uint64, c collection, collectionState any)
func (db *Database) Handle(w http.ResponseWriter, r *http.Request) {
db.rep.Handle(w, r)
}
func (db *Database) RegisterHandlers(mux *http.ServeMux, rootPath string) {
db.rep.RegisterHandlers(mux, rootPath)
}