-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into feature/vote-decrypt
- Loading branch information
Showing
10 changed files
with
140 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20.5-alpine as base | ||
FROM golang:1.20.6-alpine as base | ||
WORKDIR /root/ | ||
|
||
RUN apk add git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package vote | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/OpenSlides/openslides-autoupdate-service/pkg/datastore" | ||
"github.com/OpenSlides/openslides-autoupdate-service/pkg/datastore/cache" | ||
"github.com/OpenSlides/openslides-autoupdate-service/pkg/datastore/flow" | ||
"github.com/OpenSlides/openslides-autoupdate-service/pkg/environment" | ||
) | ||
|
||
// Flow initializes a cached connection to postgres. | ||
func Flow(lookup environment.Environmenter, messageBus flow.Updater) (flow.Flow, error) { | ||
postgres, err := datastore.NewFlowPostgres(lookup, messageBus) | ||
if err != nil { | ||
return nil, fmt.Errorf("init postgres: %w", err) | ||
} | ||
|
||
cache := cache.New(postgres) | ||
|
||
return cache, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.