From 756eb81964a965d3f56ae45ff6412c4582f5204e Mon Sep 17 00:00:00 2001 From: teslaedison Date: Wed, 6 Mar 2024 14:37:46 +0800 Subject: [PATCH] remove repetitive words Signed-off-by: teslaedison --- .github/tracing/tempo.yaml | 2 +- charts/chainlink-cluster/values.yaml | 2 +- contracts/src/v0.4/Aggregator.sol | 4 ++-- core/chains/evm/txmgr/evm_tx_store.go | 2 +- core/gethwrappers/README.md | 2 +- core/services/fluxmonitorv2/integrations_test.go | 2 +- core/services/keystore/keys/vrfkey/private_key.go | 2 +- .../ocr2/plugins/ocr2vrf/coordinator/coordinator.go | 2 +- core/web/presenters/job.go | 2 +- core/web/resolver/job_proposal_spec.go | 2 +- core/web/resolver/plugins.go | 8 ++++---- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/tracing/tempo.yaml b/.github/tracing/tempo.yaml index e61f744f78b..aa8c0ecbf0f 100644 --- a/.github/tracing/tempo.yaml +++ b/.github/tracing/tempo.yaml @@ -19,6 +19,6 @@ storage: trace: backend: local # backend configuration to use wal: - path: /tmp/tempo/wal # where to store the the wal locally + path: /tmp/tempo/wal # where to store the wal locally local: path: /tmp/tempo/blocks \ No newline at end of file diff --git a/charts/chainlink-cluster/values.yaml b/charts/chainlink-cluster/values.yaml index b0866574c90..71db2e7c68f 100644 --- a/charts/chainlink-cluster/values.yaml +++ b/charts/chainlink-cluster/values.yaml @@ -232,7 +232,7 @@ tempo: trace: backend: local # backend configuration to use wal: - path: /tmp/tempo/wal # where to store the the wal locally + path: /tmp/tempo/wal # where to store the wal locally local: path: /tmp/tempo/blocks diff --git a/contracts/src/v0.4/Aggregator.sol b/contracts/src/v0.4/Aggregator.sol index 69a166478c3..6cf088a17c1 100644 --- a/contracts/src/v0.4/Aggregator.sol +++ b/contracts/src/v0.4/Aggregator.sol @@ -370,7 +370,7 @@ contract Aggregator is AggregatorInterface, ChainlinkClient, Ownable { /** * @dev Prevents taking an action if the minimum number of responses has not * been received for an answer. - * @param _answerId The the identifier of the answer that keeps track of the responses. + * @param _answerId The identifier of the answer that keeps track of the responses. */ modifier ensureMinResponsesReceived(uint256 _answerId) { if (answers[_answerId].responses.length >= answers[_answerId].minimumResponses) { @@ -380,7 +380,7 @@ contract Aggregator is AggregatorInterface, ChainlinkClient, Ownable { /** * @dev Prevents taking an action if not all responses are received for an answer. - * @param _answerId The the identifier of the answer that keeps track of the responses. + * @param _answerId The identifier of the answer that keeps track of the responses. */ modifier ensureAllResponsesReceived(uint256 _answerId) { if (answers[_answerId].responses.length == answers[_answerId].maxResponses) { diff --git a/core/chains/evm/txmgr/evm_tx_store.go b/core/chains/evm/txmgr/evm_tx_store.go index 364ee3f04d1..29651d5ae51 100644 --- a/core/chains/evm/txmgr/evm_tx_store.go +++ b/core/chains/evm/txmgr/evm_tx_store.go @@ -41,7 +41,7 @@ var ( ErrCouldNotGetReceipt = "could not get receipt" ) -// EvmTxStore combines the txmgr tx store interface and the interface needed for the the API to read from the tx DB +// EvmTxStore combines the txmgr tx store interface and the interface needed for the API to read from the tx DB // //go:generate mockery --quiet --name EvmTxStore --output ./mocks/ --case=underscore type EvmTxStore interface { diff --git a/core/gethwrappers/README.md b/core/gethwrappers/README.md index 07830f44201..00ba8c31b20 100644 --- a/core/gethwrappers/README.md +++ b/core/gethwrappers/README.md @@ -18,7 +18,7 @@ To reduce explicit dependencies, and in case the system does not have the correct version of abigen installed , the above commands spin up docker containers. In my hands, total running time including compilation is about 13s. If you're modifying solidity code and testing against go code a lot, it -might be worthwhile to generate the the wrappers using a static container +might be worthwhile to generate the wrappers using a static container with abigen and solc, which will complete much faster. E.g. ``` diff --git a/core/services/fluxmonitorv2/integrations_test.go b/core/services/fluxmonitorv2/integrations_test.go index 7f45e6eb19c..d2cb14a8dae 100644 --- a/core/services/fluxmonitorv2/integrations_test.go +++ b/core/services/fluxmonitorv2/integrations_test.go @@ -689,7 +689,7 @@ ds1 -> ds1_parse return lb.(log.BroadcasterInTest).TrackedAddressesCount() }, testutils.WaitTimeout(t), 200*time.Millisecond).Should(gomega.BeNumerically(">=", 2)) - // Have the the fake node start a new round + // Have the fake node start a new round submitAnswer(t, answerParams{ fa: &fa, roundId: 1, diff --git a/core/services/keystore/keys/vrfkey/private_key.go b/core/services/keystore/keys/vrfkey/private_key.go index 667ddadab47..dd2545fdd28 100644 --- a/core/services/keystore/keys/vrfkey/private_key.go +++ b/core/services/keystore/keys/vrfkey/private_key.go @@ -57,7 +57,7 @@ func (k *PrivateKey) GoString() string { // Decrypt returns the PrivateKey in e, decrypted via auth, or an error func Decrypt(e EncryptedVRFKey, auth string) (*PrivateKey, error) { // NOTE: We do this shuffle to an anonymous struct - // solely to add a a throwaway UUID, so we can leverage + // solely to add a throwaway UUID, so we can leverage // the keystore.DecryptKey from the geth which requires it // as of 1.10.0. keyJSON, err := json.Marshal(struct { diff --git a/core/services/ocr2/plugins/ocr2vrf/coordinator/coordinator.go b/core/services/ocr2/plugins/ocr2vrf/coordinator/coordinator.go index 803ed3450be..4f3e4fdade4 100644 --- a/core/services/ocr2/plugins/ocr2vrf/coordinator/coordinator.go +++ b/core/services/ocr2/plugins/ocr2vrf/coordinator/coordinator.go @@ -83,7 +83,7 @@ var ( }, promLabels) promCallbacksToReport = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "ocr2vrf_coordinator_callbacks_to_report", - Help: "Number of unfulfilled and and in-flight callbacks fit in current report in reportBlocks", + Help: "Number of unfulfilled and in-flight callbacks fit in current report in reportBlocks", Buckets: counterBuckets, }, promLabels) promBlocksInReport = promauto.NewHistogramVec(prometheus.HistogramOpts{ diff --git a/core/web/presenters/job.go b/core/web/presenters/job.go index 7c8643015dd..5c537d19b3e 100644 --- a/core/web/presenters/job.go +++ b/core/web/presenters/job.go @@ -20,7 +20,7 @@ import ( "github.com/smartcontractkit/chainlink/v2/core/store/models" ) -// JobSpecType defines the the the spec type of the job +// JobSpecType defines the spec type of the job type JobSpecType string func (t JobSpecType) String() string { diff --git a/core/web/resolver/job_proposal_spec.go b/core/web/resolver/job_proposal_spec.go index 878b592e6e2..1bbef514936 100644 --- a/core/web/resolver/job_proposal_spec.go +++ b/core/web/resolver/job_proposal_spec.go @@ -80,7 +80,7 @@ func (r *JobProposalSpecResolver) Status() SpecStatus { return ToSpecStatus(r.spec.Status) } -// StatusUpdatedAt resolves to the the last timestamp that the spec status was +// StatusUpdatedAt resolves to the last timestamp that the spec status was // updated. func (r *JobProposalSpecResolver) StatusUpdatedAt() graphql.Time { return graphql.Time{Time: r.spec.StatusUpdatedAt} diff --git a/core/web/resolver/plugins.go b/core/web/resolver/plugins.go index 7d85e8d665b..bae9133280a 100644 --- a/core/web/resolver/plugins.go +++ b/core/web/resolver/plugins.go @@ -8,22 +8,22 @@ type PluginsResolver struct { plugins feeds.Plugins } -// Commit returns the the status of the commit plugin. +// Commit returns the status of the commit plugin. func (r PluginsResolver) Commit() bool { return r.plugins.Commit } -// Execute returns the the status of the execute plugin. +// Execute returns the status of the execute plugin. func (r PluginsResolver) Execute() bool { return r.plugins.Execute } -// Median returns the the status of the median plugin. +// Median returns the status of the median plugin. func (r PluginsResolver) Median() bool { return r.plugins.Median } -// Mercury returns the the status of the mercury plugin. +// Mercury returns the status of the mercury plugin. func (r PluginsResolver) Mercury() bool { return r.plugins.Mercury }