The story “The Devoted Friend” by Oscar Wilde shouldn't be read literally. The story was written in the era of decadence.And we understand that there is no question of any friendship or self-sacrifice. The essence of the fairy tale is as follows: Hans is an artist, he is busy with his favorite garden, for him it is a work of art through which he transmits a part of himself.
A certain miller slowly takes a piece of his life.The ending shows that the artist and his creation are inseparable.
This is a link to the text of the story:
https://psv4.userapi.com/c505536/u500001729/docs/d30/e92606047834/The_Devoted_Friend.pdf?extra=7XARDT6VvsqrtcP4XqmuAekf-mIgC2PlM6aJTjJaZiOluyGQcJHRP7TvIUjrGtWe5Tn12PZIC71GF3nGZt_oG18J74Gp2DSoDV-LAgfjYoKiQodufFlwmAmmPYQpRHKUi2eBnRS60jimMP0I3fT2BbzXBQ