mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-04 06:23:06 +00:00
Set LogLevel as string and do not wait for bridge when destroying because it is a sync call
This commit is contained in:
parent
35c06ba719
commit
0c19d39d8c
@ -92,7 +92,7 @@ const (
|
|||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
// Default: INFO
|
// Default: INFO
|
||||||
LogLevel LogLevel `json:"log-level,omitempty"`
|
LogLevel string `json:"log-level,omitempty"`
|
||||||
|
|
||||||
// Specifies what kind of logs should be written to stdout
|
// Specifies what kind of logs should be written to stdout
|
||||||
// Default: auto
|
// Default: auto
|
||||||
@ -280,8 +280,12 @@ func (node CodexNode) Destroy() error {
|
|||||||
return bridge.callError("cGoCodexDestroy")
|
return bridge.callError("cGoCodexDestroy")
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = bridge.wait()
|
// We don't wait for the bridge here.
|
||||||
return err
|
// The destroy function does not call the worker thread,
|
||||||
|
// it destroys the context directly and return the return
|
||||||
|
// value synchronously.
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Version returns the version of the Codex node.
|
// Version returns the version of the Codex node.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user