mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-08-28 04:46:50 -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))
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (provider *Provider) Close() error {
|
||||
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 {
|
||||
logrus.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user