Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Apr 3, 2022
1 parent 8470760 commit 00989d9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
10 changes: 4 additions & 6 deletions paymail.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,10 @@ func resolvePaymailAddress(ctx context.Context, cs cachestore.ClientInterface, c

// Save to cachestore
if cs != nil && !cs.Engine().IsEmpty() {
go func() {
_ = cs.SetModel(
ctx, cacheKeyAddressResolution+alias+"-"+domain,
&response.ResolutionPayload, cacheTTLAddressResolution,
)
}()
_ = cs.SetModel(
ctx, cacheKeyAddressResolution+alias+"-"+domain,
&response.ResolutionPayload, cacheTTLAddressResolution,
)
}

return &response.ResolutionPayload, nil
Expand Down
10 changes: 10 additions & 0 deletions tester/embedded_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ import (
"github.com/stretchr/testify/require"
)

const (
// testDatabasePort1 = 23902
testDatabaseHost = "localhost"
testDatabaseName = "test"
testDatabasePassword = "tester-pw"
testDatabasePort2 = 23903
testDatabaseUser = "tester"
testMongoVersion = "4.2.1"
)

// TestCreateMongoServer will test the method CreateMongoServer()
func TestCreateMongoServer(t *testing.T) {
t.Parallel()
Expand Down
11 changes: 2 additions & 9 deletions tester/tester_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@ import (
)

const (
testDatabasePort1 = 23902
testDatabaseHost = "localhost"
testDatabaseName = "test"
testDatabasePassword = "tester-pw"
testDatabasePort2 = 23903
testDatabaseUser = "tester"
testDomain = "domain.com"
testMongoVersion = "4.2.1"
testRedisConnection = "redis://localhost:6379"
testDomain = "domain.com"
testRedisConnection = "redis://localhost:6379"
)

// TestRandomTablePrefix will test the method RandomTablePrefix()
Expand Down

0 comments on commit 00989d9

Please sign in to comment.