Plugin updates

This commit is contained in:
Lea Anthony
2024-03-26 20:56:58 +11:00
parent 675f502802
commit 85b1f909a7
10 changed files with 177 additions and 145 deletions
+3 -2
View File
@@ -45,10 +45,11 @@ func NewPlugin(config *Config) *Plugin {
// Shutdown is called when the app is shutting down
// You can use this to clean up any resources you have allocated
func (p *Plugin) Shutdown() {
func (p *Plugin) Shutdown() error {
if p.conn != nil {
p.conn.Close()
return p.conn.Close()
}
return nil
}
// Name returns the name of the plugin.