Skip to content

Commit

Permalink
remove repetitive words
Browse files Browse the repository at this point in the history
Signed-off-by: cuinix <[email protected]>
  • Loading branch information
cuinix committed Mar 7, 2024
1 parent 716c6dd commit 60bc30d
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion batch/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func LazyAdd() SchedulerOption {
// set of Requests, executes them, and returns the error from the operation.
type Scheduler interface {
// Execute schedules a Request for execution with the next available
// batch. This method blocks until the the underlying closure has been
// batch. This method blocks until the underlying closure has been
// run against the database. The resulting error is returned to the
// caller.
Execute(req *Request) error
Expand Down
4 changes: 2 additions & 2 deletions cert/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func LoadCert(certPath, keyPath string) (tls.Certificate, *x509.Certificate,
return tls.Certificate{}, nil, err
}

// Now parse the the PEM block of the certificate into its x509 data
// Now parse the PEM block of the certificate into its x509 data
// structure so it can be examined in more detail.
x509Cert, err := x509.ParseCertificate(certData.Certificate[0])
if err != nil {
Expand All @@ -82,7 +82,7 @@ func LoadCertFromBytes(certBytes, keyBytes []byte) (tls.Certificate,
return tls.Certificate{}, nil, err
}

// Now parse the the PEM block of the certificate into its x509 data
// Now parse the PEM block of the certificate into its x509 data
// structure so it can be examined in more detail.
x509Cert, err := x509.ParseCertificate(certData.Certificate[0])
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cluster/etcd_elector.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (e *etcdLeaderElector) Leader(ctx context.Context) (string, error) {
}

// Campaign will start a new leader election campaign. Campaign will block until
// the elector context is canceled or the the caller is elected as the leader.
// the elector context is canceled or the caller is elected as the leader.
func (e *etcdLeaderElector) Campaign(ctx context.Context) error {
return e.election.Campaign(ctx, e.id)
}
Expand Down
2 changes: 1 addition & 1 deletion htlcswitch/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ func (s *Switch) failAddPacket(packet *htlcPacket, failure *LinkError) error {

log.Error(failure.Error())

// Create a failure packet for this htlc. The the full set of
// Create a failure packet for this htlc. The full set of
// information about the htlc failure is included so that they can
// be included in link failure notifications.
failPkt := &htlcPacket{
Expand Down
2 changes: 1 addition & 1 deletion invoices/invoice_expiry_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func NewInvoiceExpiryWatcher(clock clock.Clock,
}
}

// Start starts the the subscription handler and the main loop. Start() will
// Start starts the subscription handler and the main loop. Start() will
// return with error if InvoiceExpiryWatcher is already started. Start()
// expects a cancellation function passed that will be use to cancel expired
// invoices by their payment hash.
Expand Down
2 changes: 1 addition & 1 deletion kvdb/etcd/stm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ func (s *stm) Rollback() {
}

// rollback will reset the read and write sets. If clearReadSet is false we'll
// only reset the the write set.
// only reset the write set.
func (s *stm) rollback(clearReadSet bool) {
if clearReadSet {
s.rset.clear()
Expand Down
4 changes: 2 additions & 2 deletions lnrpc/signrpc/signer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lnrpc/signrpc/signer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ message MuSig2CombineKeysRequest {
repeated bytes all_signer_pubkeys = 1;

/*
A series of optional generic tweaks to be applied to the the aggregated
A series of optional generic tweaks to be applied to the aggregated
public key.
*/
repeated TweakDesc tweaks = 2;
Expand Down Expand Up @@ -551,7 +551,7 @@ message MuSig2SessionRequest {
repeated bytes other_signer_public_nonces = 3;

/*
A series of optional generic tweaks to be applied to the the aggregated
A series of optional generic tweaks to be applied to the aggregated
public key.
*/
repeated TweakDesc tweaks = 4;
Expand Down
4 changes: 2 additions & 2 deletions lnrpc/signrpc/signer.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@
"items": {
"$ref": "#/definitions/signrpcTweakDesc"
},
"description": "A series of optional generic tweaks to be applied to the the aggregated\npublic key."
"description": "A series of optional generic tweaks to be applied to the aggregated\npublic key."
},
"taproot_tweak": {
"$ref": "#/definitions/signrpcTaprootTweakDesc",
Expand Down Expand Up @@ -627,7 +627,7 @@
"items": {
"$ref": "#/definitions/signrpcTweakDesc"
},
"description": "A series of optional generic tweaks to be applied to the the aggregated\npublic key."
"description": "A series of optional generic tweaks to be applied to the aggregated\npublic key."
},
"taproot_tweak": {
"$ref": "#/definitions/signrpcTaprootTweakDesc",
Expand Down
2 changes: 1 addition & 1 deletion lnwallet/chainfee/rates.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
FeePerKwFloor SatPerKWeight = 253

// AbsoluteFeePerKwFloor is the lowest fee rate in sat/kw of a
// transaction that we should ever _create_. This is the the equivalent
// transaction that we should ever _create_. This is the equivalent
// of 1 sat/byte in sat/kw.
AbsoluteFeePerKwFloor SatPerKWeight = 250
)
Expand Down
2 changes: 1 addition & 1 deletion lnwallet/chanfunding/coin_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func CoinSelectSubtractFees(feeRate chainfee.SatPerKWeight, amt,
outputAmt := totalSat - requiredFeeNoChange
changeAmt := btcutil.Amount(0)

// If the the output is too small after subtracting the fee, the coin
// If the output is too small after subtracting the fee, the coin
// selection cannot be performed with an amount this small.
if outputAmt < dustLimit {
return nil, 0, 0, fmt.Errorf("output amount(%v) after "+
Expand Down
2 changes: 1 addition & 1 deletion queue/priority_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (pq priorityQueue) Swap(i, j int) {
pq[i], pq[j] = pq[j], pq[i]
}

// Push adds a new item the the priorityQueue.
// Push adds a new item the priorityQueue.
func (pq *priorityQueue) Push(x interface{}) {
item := x.(PriorityQueueItem)
*pq = append(*pq, item)
Expand Down
2 changes: 1 addition & 1 deletion sample-lnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@
; `Payment_In_FLIGHT` will be sent for compatibility concerns.
; routerrpc.usestatusinitiated=false

; Defines the the maximum duration that the probing fee estimation is allowed to
; Defines the maximum duration that the probing fee estimation is allowed to
; take.
; routerrpc.fee-estimation-timeout=1m

Expand Down
6 changes: 3 additions & 3 deletions sweep/sweeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ type UtxoSweeperConfig struct {
// sweeps, how many blocks to wait before retrying to sweep.
NextAttemptDeltaFunc func(int) int32

// MaxFeeRate is the the maximum fee rate allowed within the
// MaxFeeRate is the maximum fee rate allowed within the
// UtxoSweeper.
MaxFeeRate chainfee.SatPerVByte

Expand Down Expand Up @@ -794,7 +794,7 @@ func (s *UtxoSweeper) createInputClusters() []inputCluster {
// if the locktime is equal.
lockTimeClusters, nonLockTimeInputs := s.clusterByLockTime(inputs)

// Cluster the the remaining inputs by sweep fee rate.
// Cluster the remaining inputs by sweep fee rate.
feeClusters := s.clusterBySweepFeeRate(nonLockTimeInputs)

// Since the inputs that we clustered by fee rate don't commit to a
Expand Down Expand Up @@ -1481,7 +1481,7 @@ func DefaultNextAttemptDeltaFunc(attempts int) int32 {
return 1 + rand.Int31n(1<<uint(attempts-1))
}

// ListSweeps returns a list of the the sweeps recorded by the sweep store.
// ListSweeps returns a list of the sweeps recorded by the sweep store.
func (s *UtxoSweeper) ListSweeps() ([]chainhash.Hash, error) {
return s.cfg.Store.ListSweeps()
}
Expand Down
2 changes: 1 addition & 1 deletion watchtower/wtserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Config struct {
// storing state updates.
DB DB

// NodeKeyECDH is the the ECDH capable wrapper of the key to be used in
// NodeKeyECDH is the ECDH capable wrapper of the key to be used in
// accepting new brontide connections.
NodeKeyECDH keychain.SingleKeyECDH

Expand Down

0 comments on commit 60bc30d

Please sign in to comment.