You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want add the callback when the resource is released. I try to add some code at resources.go:
And I build this project from source code using MakeFile, but it seems does not work. Even l add some fmt.Println code and it also does not work.
Inform function
can you give me some advice, thanks.
And I build this project from source code using MakeFile, but it seems does not work. Even l add some fmt.Println code and it also does not work.
I'd suggest you figure out if you can make custom builds of the software with your code changes. For example, you can put some prints into Run function in core.go which is called on master startup to initialize everything, so it'll be easy for you to confirm your changes are there.
Then, once you know you can change the code with confidence, you can hack it further.
Also, String() method on ResourcesStopped is called to create a string representation of that object — it won't necessarily happen when the resources are released.
And I build this project from source code using MakeFile, but it seems does not work. Even l add some fmt.Println code and it also does not work.
I'd suggest you figure out if you can make custom builds of the software with your code changes. For example, you can put some prints into Run function in core.go which is called on master startup to initialize everything, so it'll be easy for you to confirm your changes are there.
Then, once you know you can change the code with confidence, you can hack it further.
Also, String() method on ResourcesStopped is called to create a string representation of that object — it won't necessarily happen when the resources are released.
Describe your question
I want add the callback when the resource is released. I try to add some code at resources.go:


And I build this project from source code using MakeFile, but it seems does not work. Even l add some fmt.Println code and it also does not work.
Inform function
can you give me some advice, thanks.
Checklist
The text was updated successfully, but these errors were encountered: