When adding a file

hello everyone,
i have got a basic question. when adding a file at local node, did i also transfer a copy of file to one of my connection peers through dht function simultaneously?
Based on my experiment, my connection peers could not find a copy of file when i add a file.
Only if my connection peers use “get” command, would they receive file.

i have got a basic question. when adding a file at local node, did i also transfer a copy of file to one of my connection peers through dht function simultaneously?

No. You only told some of your DHT peers that you have the file. You didn’t give it to them.

Thank you for reply. Just you say, my peer only know i got data. He uses dht findprovs command to know data I got.