mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-05 16:47:31 -04:00
Removing unneeded NewProviderWithGroup function
This commit is contained in:
@@ -123,12 +123,6 @@ func NewProvider(name string, callback EnableCallback) (provider *Provider, err
|
|||||||
return NewProviderWithOptions(name, WithCallback(callback))
|
return NewProviderWithOptions(name, WithCallback(callback))
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewProviderWithGroup creates and registers a new ETW provider with a
|
|
||||||
// specificed group. The provider ID is generated based on the provider name.
|
|
||||||
func NewProviderWithGroup(name string, group guid.GUID, callback EnableCallback) (provider *Provider, err error) {
|
|
||||||
return NewProviderWithOptions(name, WithGroup(group), WithCallback(callback))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Close unregisters the provider.
|
// Close unregisters the provider.
|
||||||
func (provider *Provider) Close() error {
|
func (provider *Provider) Close() error {
|
||||||
if provider == nil {
|
if provider == nil {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
providerWithGroup, err := etw.NewProviderWithGroup("TestProviderWithGroup", group, callback)
|
providerWithGroup, err := etw.NewProviderWithOptions("TestProviderWithGroup", etw.WithGroup(group), etw.WithCallback(callback))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user