Skip to content

Commit

Permalink
revert context change to pkg/protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Oct 10, 2024
1 parent 9b1ad66 commit d39fc43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/protobufs/plugin_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ type NotifierPlugin struct {
type GRPCClient struct{ client NotifierClient }

func (m *GRPCClient) Notify(ctx context.Context, notification *Notification) (*Empty, error) {
_, err := m.client.Notify(ctx, notification)
_, err := m.client.Notify(context.Background(), notification)

Check warning on line 27 in pkg/protobufs/plugin_interface.go

View check run for this annotation

Codecov / codecov/patch

pkg/protobufs/plugin_interface.go#L27

Added line #L27 was not covered by tests
return &Empty{}, err
}

func (m *GRPCClient) Configure(ctx context.Context, config *Config) (*Empty, error) {
_, err := m.client.Configure(ctx, config)
_, err := m.client.Configure(context.Background(), config)

Check warning on line 32 in pkg/protobufs/plugin_interface.go

View check run for this annotation

Codecov / codecov/patch

pkg/protobufs/plugin_interface.go#L32

Added line #L32 was not covered by tests
return &Empty{}, err
}

Expand Down

0 comments on commit d39fc43

Please sign in to comment.