Skip to content

Commit ee64ec6

Browse files
authored
renamed interface from PostResponsePlugin to PostResponse (#919)
Signed-off-by: Nir Rozenbaum <[email protected]>
1 parent 82105a6 commit ee64ec6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/epp/requestcontrol/director.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ type Director struct {
5959
datastore datastore.Datastore
6060
scheduler Scheduler
6161
saturationDetector SaturationDetector
62-
postResponsePlugins []PostResponsePlugin
62+
postResponsePlugins []PostResponse
6363
}
6464

6565
// WithPostResponsePlugins sets the given plugins as the PostResponse plugins.
6666
// If the Director has PostResponse plugins already, this call replaces the existing plugins with the given ones.
67-
func (d *Director) WithPostResponsePlugins(plugins ...PostResponsePlugin) *Director {
67+
func (d *Director) WithPostResponsePlugins(plugins ...PostResponse) *Director {
6868
d.postResponsePlugins = plugins
6969
return d
7070
}

pkg/epp/requestcontrol/plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030

3131
// PostResponse is called by the director after a successful response was sent.
3232
// The given pod argument is the pod that served the request.
33-
type PostResponsePlugin interface {
33+
type PostResponse interface {
3434
plugins.Plugin
3535
PostResponse(ctx context.Context, request *types.LLMRequest, response *Response, targetPod *backend.Pod)
3636
}

0 commit comments

Comments
 (0)