Merge pull request #2228 from lencap/master

chore: fix some comments
This commit is contained in:
Olaoluwa Osuntokun 2024-10-08 14:40:33 +02:00 committed by GitHub
commit b4afc08a35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ func (b *rpcSyncMgr) SyncPeerID() int32 {
return b.syncMgr.SyncPeerID() return b.syncMgr.SyncPeerID()
} }
// LocateBlocks returns the hashes of the blocks after the first known block in // LocateHeaders returns the hashes of the blocks after the first known block in
// the provided locators until the provided stop hash or the current tip is // the provided locators until the provided stop hash or the current tip is
// reached, up to a max of wire.MaxBlockHeadersPerMsg hashes. // reached, up to a max of wire.MaxBlockHeadersPerMsg hashes.
// //

View File

@ -201,7 +201,7 @@ func getChildDevice(d *device, deviceType string) *device {
return nil return nil
} }
// getChildDevice searches the service list of device for a service with the // getChildService searches the service list of device for a service with the
// given type. // given type.
func getChildService(d *device, serviceType string) *service { func getChildService(d *device, serviceType string) *service {
for i := range d.ServiceList.Service { for i := range d.ServiceList.Service {