Refine backlog policy and runtime guards

Move speculative framework items into Ideas and bump rc.14

Guard tgapi API/uploader setup and nil plugin registrations

Add missing observer Event godoc
This commit is contained in:
2026-03-31 16:57:08 +03:00
parent a818174fbf
commit ba25dab6b1
8 changed files with 38 additions and 7 deletions
+5
View File
@@ -71,6 +71,11 @@ type Uploader struct {
// NewUploader creates a multipart uploader bound to an API client.
func NewUploader(api *API) *Uploader {
logger := utils.CreateLogger("UPLOADER", utils.GetLoggerLevel())
if api == nil {
logger.Errorln("api is nil")
_ = logger.Close()
return nil
}
return &Uploader{api, logger}
}