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
diff --git a/web/keys_controller.go b/web/keys_controller.go | |
index c76ba719..091ad270 100644 | |
--- a/web/keys_controller.go | |
+++ b/web/keys_controller.go | |
@@ -18,16 +18,22 @@ type KeysController struct { | |
// "<application>/keys" | |
func (c *KeysController) Create(ctx *gin.Context) { | |
request := models.CreateKeyRequest{} | |
+ | |
// TODO: Change CreateKeyRequest to only have one password |
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
diff --git a/cmd/client_test.go b/cmd/client_test.go | |
index 3def9489..75062b78 100644 | |
--- a/cmd/client_test.go | |
+++ b/cmd/client_test.go | |
@@ -178,7 +178,7 @@ func TestFileAPIInitializer_InitializeWithoutAPIUser(t *testing.T) { | |
file string | |
wantError bool | |
}{ | |
- {"correct", "../internal/fixtures/apicredentials", false}, | |
+ {"correct", "testdata/apicredentials", false}, |
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
package main | |
import ( | |
"database/sql/driver" | |
"fmt" | |
"github.com/jinzhu/gorm" | |
_ "github.com/jinzhu/gorm/dialects/postgres" | |
_ "github.com/jinzhu/gorm/dialects/sqlite" | |
) |
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
diff --git a/services/application.go b/services/application.go | |
index 39573a5b..3d5c0cad 100644 | |
--- a/services/application.go | |
+++ b/services/application.go | |
@@ -43,7 +43,7 @@ type ChainlinkApplication struct { | |
BulkRunDeleter SleeperTask | |
pendingConnectionResumer *pendingConnectionResumer | |
bridgeTypeMutex sync.Mutex | |
- jobSubscriberID, txManagerID, connectionResumerID string | |
+ jobSubscriberID, txManagerID, connectionResumerID int |
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
diff --git a/services/application.go b/services/application.go | |
index 39573a5b..3d5c0cad 100644 | |
--- a/services/application.go | |
+++ b/services/application.go | |
@@ -43,7 +43,7 @@ type ChainlinkApplication struct { | |
BulkRunDeleter SleeperTask | |
pendingConnectionResumer *pendingConnectionResumer | |
bridgeTypeMutex sync.Mutex | |
- jobSubscriberID, txManagerID, connectionResumerID string | |
+ jobSubscriberID, txManagerID, connectionResumerID int |
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
func TestHeightsController_Index(t *testing.T) { | |
threshold := big.NewInt(2) | |
tests := []struct { | |
name string | |
status int | |
}{ | |
{"good clients", 200}, | |
// Hard to do error cases without adding an if with difference setup. could add test helpers... | |
} |
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
#!/usr/bin/env node | |
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
const countdown = async () => { | |
await delay(5000) | |
console.log("hello world") | |
} | |
countdown() |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
func main() { | |
callback := func(int) bool { return false } | |
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
coreml_model = coremltools.converters.Keras.convert( | |
path, | |
input_names=['input_1'], | |
image_input_names=['input_1'], | |
output_names=['density_map']) | |
coreml_model.save("CrowdPredictor.mlmodel") |
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
package services | |
import ( | |
"sync" | |
"time" | |
"github.com/asdine/storm" | |
"github.com/smartcontractkit/chainlink/logger" | |
"github.com/smartcontractkit/chainlink/store" | |
"github.com/smartcontractkit/chainlink/store/models" |