- Updated benchmark functions to utilize TaiID instead of pool names for improved consistency and accuracy in tests. - Refactored test cases across various files to ensure compatibility with the new TaiID structure. - Enhanced setup functions to accept pointers to poolConfig for better memory management. - Removed deprecated config struct and adjusted related documentation to reflect the changes in the sandbox architecture. Made-with: Cursor
17 lines
351 B
Go
17 lines
351 B
Go
package sandbox
|
|
|
|
var mgr *Manager
|
|
|
|
// Init initializes the global sandbox Manager.
|
|
// Node discovery is handled by the tai/registry; no configuration is needed.
|
|
func Init() {
|
|
mgr = newManager()
|
|
}
|
|
|
|
// M returns the global Manager. Panics if Init was not called.
|
|
func M() *Manager {
|
|
if mgr == nil {
|
|
panic("sandbox.Init not called")
|
|
}
|
|
return mgr
|
|
}
|