Skip to content

Commit

Permalink
sink-server: slight refactor of Create func
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Nov 29, 2023
1 parent 9961e62 commit 20bb46f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sink-server/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ func (e *DockerEngine) Create(ctx context.Context, deploymentID string, pkg *pbs
e.mutex.Lock()
defer e.mutex.Unlock()

return e.create(ctx, deploymentID, pkg, zlog)
}

func (e *DockerEngine) create(ctx context.Context, deploymentID string, pkg *pbsubstreams.Package, zlog *zap.Logger) (*pbsinksvc.InfoResponse, error) {
if e.otherDeploymentIsActive(ctx, "!NO_MATCH!", zlog) {
return nil, fmt.Errorf("this substreams-sink engine only supports a single active deployment. Stop any active sink before launching another one or use `sink-update`")
}
Expand Down

0 comments on commit 20bb46f

Please sign in to comment.